versionist 1.6.0 → 1.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8c65e59b55907757f334aa9d756ffecf623bff64
4
- data.tar.gz: 08eda1f342cdf427a82f7445f7da93df562fb406
3
+ metadata.gz: 6dc8da5947e2caf64640f8fa749f631659da48f4
4
+ data.tar.gz: 51b62292093180fe2609266e77a3f00b72e60d7b
5
5
  SHA512:
6
- metadata.gz: 832d3e240c6a4033a8552681a23731b65992801b316bb6e1b44305a3690252fd69ea49b872fd156207eb743fd53df98920ca963bdba50661b446afeddaea6a5b
7
- data.tar.gz: 9ab37e812a37b205af78ff3186da4548ed8936e6ef3ff74a479d0c88adfd831ff951b5b4b7f63c278ada8639eb1936decc74fab29180fb100c3d08c7c4726e7e
6
+ metadata.gz: 8bb2085e10a486b769222c91754612797d7d89447ef249b67c396c202a81ca2c67bbfc9dbb5b1eb8c4783bc42cb420f51006957fa34241d94d56d73daaf7b090
7
+ data.tar.gz: c5930d114e9b2a87964326cffce1f2bdcc57dc05c6e4ae8b312aa3d5238380c23be1e91c06798919791392866c4e6e58ec5ce6adc67c4a01e36d4a75f5e0d22b
@@ -56,18 +56,18 @@ module Versionist
56
56
  in_root do
57
57
  case Versionist.configuration.configured_test_framework
58
58
  when :test_unit
59
- if File.exists? "#{test_path}/#{module_name_for_path(old_module_name)}"
60
- log "Copying all files from #{test_path}/#{module_name_for_path(old_module_name)} to #{test_path}/#{module_name_for_path(new_module_name)}"
61
- FileUtils.cp_r "#{test_path}/#{module_name_for_path(old_module_name)}", "#{test_path}/#{module_name_for_path(new_module_name)}"
62
- Dir.glob("#{test_path}/#{module_name_for_path(new_module_name)}/*.rb").each do |f|
59
+ if File.exists? "#{Versionist.test_path}/#{module_name_for_path(old_module_name)}"
60
+ log "Copying all files from #{Versionist.test_path}/#{module_name_for_path(old_module_name)} to #{Versionist.test_path}/#{module_name_for_path(new_module_name)}"
61
+ FileUtils.cp_r "#{Versionist.test_path}/#{module_name_for_path(old_module_name)}", "#{Versionist.test_path}/#{module_name_for_path(new_module_name)}"
62
+ Dir.glob("#{Versionist.test_path}/#{module_name_for_path(new_module_name)}/*.rb").each do |f|
63
63
  text = File.read(f)
64
64
  File.open(f, 'w') {|f| f << text.gsub(/#{old_module_name}/, new_module_name)}
65
65
  end
66
66
  else
67
- say "No tests found in #{test_path} for #{old_version}"
67
+ say "No tests found in #{Versionist.test_path} for #{old_version}"
68
68
  end
69
69
 
70
- if older_than_rails_5?
70
+ if Versionist.older_than_rails_5?
71
71
  if File.exists? "test/integration/#{module_name_for_path(old_module_name)}"
72
72
  log "Copying all files from test/integration/#{module_name_for_path(old_module_name)} to test/integration/#{module_name_for_path(new_module_name)}"
73
73
  FileUtils.cp_r "test/integration/#{module_name_for_path(old_module_name)}", "test/integration/#{module_name_for_path(new_module_name)}"
@@ -64,14 +64,14 @@ module Versionist
64
64
  in_root do
65
65
  case Versionist.configuration.configured_test_framework
66
66
  when :test_unit
67
- empty_directory "test/#{test_path}/#{module_name_for_path(module_name)}"
67
+ empty_directory "test/#{Versionist.test_path}/#{module_name_for_path(module_name)}"
68
68
  empty_directory "test/integration/#{module_name_for_path(module_name)}"
69
69
 
70
- if older_than_rails_5?
70
+ if Versionist.older_than_rails_5?
71
71
  template 'base_controller_integration_test.rb', File.join("test", "integration", "#{module_name_for_path(module_name)}", "base_controller_test.rb")
72
- template 'base_controller_functional_test.rb', File.join("test", "#{test_path}", "#{module_name_for_path(module_name)}", "base_controller_test.rb")
72
+ template 'base_controller_functional_test.rb', File.join("test", "#{Versionist.test_path}", "#{module_name_for_path(module_name)}", "base_controller_test.rb")
73
73
  else
74
- template 'base_controller_functional_test_rails_5.rb', File.join("test", "#{test_path}", "#{module_name_for_path(module_name)}", "base_controller_test_rails_5.rb")
74
+ template 'base_controller_functional_test_rails_5.rb', File.join("test", "#{Versionist.test_path}", "#{module_name_for_path(module_name)}", "base_controller_test_rails_5.rb")
75
75
  end
76
76
  when :rspec
77
77
  @rspec_require_file = rspec_helper_filename
@@ -98,7 +98,7 @@ module Versionist
98
98
  when :test_unit
99
99
  empty_directory "test/presenters/#{module_name_for_path(module_name)}"
100
100
 
101
- if older_than_rails_5?
101
+ if Versionist.older_than_rails_5?
102
102
  template 'base_presenter_test.rb', File.join("test", "presenters", "#{module_name_for_path(module_name)}", "base_presenter_test.rb")
103
103
  else
104
104
  template 'base_presenter_test_rails_5.rb', File.join("test", "presenters", "#{module_name_for_path(module_name)}", "base_presenter_test_rails_5.rb")
@@ -32,11 +32,11 @@ module Versionist
32
32
  in_root do
33
33
  case Versionist.configuration.configured_test_framework
34
34
  when :test_unit
35
- if older_than_rails_5?
35
+ if Versionist.older_than_rails_5?
36
36
  template 'new_controller_integration_test.rb', File.join("test", "integration", "#{module_name_for_path(module_name)}", "#{file_name}_controller_test.rb")
37
- template 'new_controller_functional_test.rb', File.join("test", "#{test_path}", "#{module_name_for_path(module_name)}", "#{file_name}_controller_test.rb")
37
+ template 'new_controller_functional_test.rb', File.join("test", "#{Versionist.test_path}", "#{module_name_for_path(module_name)}", "#{file_name}_controller_test.rb")
38
38
  else
39
- template 'new_controller_functional_test_rails_5.rb', File.join("test", "#{test_path}", "#{module_name_for_path(module_name)}", "#{file_name}_controller_test_rails_5.rb")
39
+ template 'new_controller_functional_test_rails_5.rb', File.join("test", "#{Versionist.test_path}", "#{module_name_for_path(module_name)}", "#{file_name}_controller_test_rails_5.rb")
40
40
  end
41
41
  when :rspec
42
42
  @rspec_require_file = rspec_helper_filename
@@ -19,7 +19,7 @@ module Versionist
19
19
  in_root do
20
20
  case Versionist.configuration.configured_test_framework
21
21
  when :test_unit
22
- if older_than_rails_5?
22
+ if Versionist.older_than_rails_5?
23
23
  template 'new_presenter_test.rb', File.join("test", "presenters", "#{module_name_for_path(module_name)}", "#{file_name}_presenter_test.rb")
24
24
  else
25
25
  template 'new_presenter_test_rails_5.rb', File.join("test", "presenters", "#{module_name_for_path(module_name)}", "#{file_name}_presenter_test_rails_5.rb")
@@ -1,3 +1,3 @@
1
1
  module Versionist
2
- VERSION = '1.6.0'
2
+ VERSION = '1.6.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: versionist
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Ploetz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-10 00:00:00.000000000 Z
11
+ date: 2017-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -124,5 +124,5 @@ rubyforge_project:
124
124
  rubygems_version: 2.4.8
125
125
  signing_key:
126
126
  specification_version: 4
127
- summary: versionist-1.6.0
127
+ summary: versionist-1.6.1
128
128
  test_files: []