schema_dev 3.2.2 → 3.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bf1f7ec6c2b5d5badbf304a41c0805ffe24bb8f3
4
- data.tar.gz: 7440fc2cf538fc06a303ca16012d78158c41327d
3
+ metadata.gz: 6379799dc31025046e8582a1820968d52898b36b
4
+ data.tar.gz: f6dd0d959f9678a32f4076cf733767e7fb8eee93
5
5
  SHA512:
6
- metadata.gz: b7ba7183fce969d0f96615a93289c7aa4e3ae69eb1517fa56bfe2acb92c6edf9f4d9da249ecc6966672180a09ec4c2e150babd73aff27217474d652e295c06cb
7
- data.tar.gz: 1245988ddd0db54177ab44723627420b64a6e10aa909774073b14b2e640aa41eaf5492562c278a8bbfbecba50183543fa728e02ed3d6f43eb05c7805f55fbf9f
6
+ metadata.gz: 1020d0bf791efc5725562e78106469c1b05f2119a728919173c09f86dec6db46682404e6326a4a73ded01a413dc83ff9c86b4265982c4ebc790ff5ce51ce413e
7
+ data.tar.gz: c7d7e76c90fe68d0898aa82b43fb310873a19e0509b41e8072c0a9487280b91d80650c7d98934db6551f5e9e8e4a2399562c5e08f27eee5c452be22de08089ee
data/README.md CHANGED
@@ -33,11 +33,11 @@ If you change this file, it's a good idea to run `schema_dev freshen`
33
33
 
34
34
  ### Ruby selection
35
35
 
36
- You must have one of [chruby](https://github.com/postmodern/chruby), [rbenv](https://github.com/sstephenson/rbenv) or [rvm](http://rvm.io) installed and working. Within it, have available whichever ruby versions you want to test.
36
+ You must have one of [chruby](https://github.com/postmodern/chruby), [rbenv](https://github.com/sstephenson/rbenv) or [rvm](http://rvm.io) installed and working. Within it, have available whichever ruby versions you want to test.
37
37
 
38
- ### Database
38
+ ### Database
39
39
 
40
- Of course you must have installed whichever database(s) you want to test.
40
+ Of course you must have installed whichever database(s) you want to test.
41
41
 
42
42
  For PostgreSQL and MySQL the tests need a db user with permissions to create and access databases: The default username used by the specs is 'schema_plus' for both PostgreSQL and MySQL; you can change them via:
43
43
 
@@ -65,7 +65,7 @@ If you want to pass extra arguments to a command, make sure to use `--` to avoid
65
65
 
66
66
  $ schema_dev rspec --quick -- -e 'select which spec'
67
67
 
68
- For interactive debugging you may want to run rspec directly from the shell rather than through`schema_dev` (which doesn't give you an interactive ptty). schema_dev echoes each command being run, preceded by a `*`. E.g.
68
+ For interactive debugging you may want to run rspec directly from the shell rather than through`schema_dev` (which doesn't give you an interactive ptty). schema_dev echoes each command being run, preceded by a `*`. E.g.
69
69
 
70
70
  $ schema_dev rspec --quick -- -e 'select which spec' -n
71
71
 
@@ -93,7 +93,7 @@ Whenever you run a `schema_dev` matrix command, it first freshens the various ge
93
93
  The client gem will contain a "gemfiles" subdirectory tree containing the matrix of
94
94
  possible gemfiles; this entire tree gets created/updated automatically, and should be checked into the git repo.
95
95
 
96
- Note that freshening the gemfiles happens automatically whenever you run a schema_dev matrix command, and blows away any previous files. So you should not attempt to change any files in `gemfiles/*`
96
+ Note that freshening the gemfiles happens automatically whenever you run a schema_dev matrix command, and blows away any previous files. So you should not attempt to change any files in `gemfiles/*`
97
97
 
98
98
  If you need to include extra specifications in the Gemfile (e.g. to specify a path for a gem), you can create a file `Gemfile.local` in the project root, and its contents will be included in the Gemfile.
99
99
 
@@ -105,7 +105,7 @@ The `.travis.yml` file gets created automatically. Don't edit it by hand.
105
105
 
106
106
  `schema_dev` generates markdown describing the text matrix, and inserts it into the README.md, in a block guarded by markdown comments
107
107
 
108
- [//]: # SCHEMA_DEV: MATRIX
108
+ [//]: # SCHEMA_DEV: MATRIX
109
109
  .
110
110
  .
111
111
  .
@@ -120,7 +120,7 @@ The client gem's`spec/spec_helper` includes this
120
120
 
121
121
  require 'schema_dev/rspec'
122
122
  SchemaDev::Rspec.setup
123
-
123
+
124
124
  This will take care of starting up `schema_monkey`, connecting to the test database appropriately, and and setting up logging to a file specific to the test matrix cell.
125
125
 
126
126
  #### Rake
@@ -128,5 +128,5 @@ This will take care of starting up `schema_monkey`, connecting to the test datab
128
128
  The client gem's `Rakefile` includes:
129
129
 
130
130
  require 'schema_dev/tasks'
131
-
131
+
132
132
  Which defines the rake task `create_databases` and also a task for travis-ci
@@ -140,13 +140,13 @@ module SchemaDev
140
140
  end
141
141
 
142
142
  def freshen
143
- Dir.chdir gem_root do
143
+ Dir.chdir gem_root do
144
144
  Runner.new(Config.read).freshen(quiet:true)
145
145
  end
146
146
  end
147
147
 
148
148
  def git_init
149
- Dir.chdir gem_name do
149
+ Dir.chdir gem_name do
150
150
  system "git init"
151
151
  system "git add #{gem_root.find.select(&:exist?).reject(&it.basename.to_s == 'Gemfile.local').join(' ')}"
152
152
  system "git commit -m 'Initial skeleton generated by `schema_dev gem #{gem_name}`'"
@@ -16,10 +16,11 @@ module SchemaDev
16
16
  def update
17
17
  return false unless readme.exist?
18
18
  lines = readme.readlines
19
- newlines = sub_matrix(lines)
19
+ newlines = sub_matrix(lines.dup)
20
20
  newlines = sub_templates(newlines)
21
- if lines != newlines
22
- readme.write Gem.new(Pathname.pwd.basename.to_s).subs(newlines.join)
21
+ newreadme = Gem.new(Pathname.pwd.basename.to_s).subs(newlines.join)
22
+ if newreadme != lines.join
23
+ readme.write newreadme
23
24
  return true
24
25
  end
25
26
  end
@@ -1,3 +1,3 @@
1
1
  module SchemaDev
2
- VERSION = "3.2.2"
2
+ VERSION = "3.2.3"
3
3
  end
data/spec/config_spec.rb CHANGED
@@ -57,5 +57,5 @@ describe SchemaDev::Config do
57
57
  ]
58
58
  end
59
59
 
60
-
60
+
61
61
  end
@@ -30,5 +30,5 @@ describe SchemaDev::Gemfiles do
30
30
  end
31
31
 
32
32
  end
33
-
33
+
34
34
 
data/spec/runner_spec.rb CHANGED
@@ -44,7 +44,7 @@ describe SchemaDev::Runner do
44
44
 
45
45
  # mocking execution
46
46
  original_popen2e = Open3.method(:popen2e)
47
- allow(Open3).to receive(:popen2e) { |cmd, &block|
47
+ allow(Open3).to receive(:popen2e) { |cmd, &block|
48
48
  cmd = case cmd
49
49
  when /false$/ then "false"
50
50
  when /true$/ then "true"
@@ -2,4 +2,3 @@
2
2
  [schema_monkey](https://github.com/SchemaPlus/schema_monkey) client,
3
3
  using [schema_monkey](https://github.com/SchemaPlus/schema_monkey)'s
4
4
  convention-based protocols for extending ActiveRecord and using middleware stacks.
5
- For more information see [schema_monkey](https://github.com/SchemaPlus/schema_monkey)'s README.
@@ -3,4 +3,4 @@
3
3
  ActiveRecord's behavior. If that API is missing something you need for
4
4
  your contribution, please head over to
5
5
  [schema_plus_core](https://github/SchemaPlus/schema_plus_core) and open
6
- an issue or pull request.
6
+ an issue or pull request.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: schema_dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.2
4
+ version: 3.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - ronen barzel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-11 00:00:00.000000000 Z
11
+ date: 2015-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport