thor 1.2.0 → 1.2.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
  SHA256:
3
- metadata.gz: e94d00b16790c1908982c0fc76113f047ef1d190cba38b28269bff4be8d29191
4
- data.tar.gz: 73c43412813c252302cc88b3aa3b5deee87ba9d1db20e2d6661714a7a4e88843
3
+ metadata.gz: 30e79d2b0a96e87c8e6348467db577c6ad1e9acbbbac5d375417bc3e5a2b7698
4
+ data.tar.gz: 701f1ab842da90e599b96bd00d90481d716eb29e39e0283b5ff527c2033fc742
5
5
  SHA512:
6
- metadata.gz: 5071358360989a17de4daa7f141b4d4f411d5914cf2d25e2856c4f95815f6ad6ecbaaec52a5a385a96d5277005cd61fec34c9401918b62de8c767cdae36a924d
7
- data.tar.gz: 49a99cc7a21d9f9f90aef59325c543c8d82e9f22cff26fecfdfd3071d82c3ead068b82818b1cbe67ba7e3235edf29b0db0f74334723cbad5cd00808997bc1147
6
+ metadata.gz: 73b1ac80575d4422204cd8072950b5594739db3b6f3fde0f2f04359d51b1d4428524d25b9a3003ae9ec3f6be615cf635f3057bbc65558e6a17ba490ff045988b
7
+ data.tar.gz: eb7761a5e6f3674cb3231398145978b0eb53a6fa2c10e4cb9e99d8d523988efcefc8cae5dd163b8a3d6ead7424422d58b92311c200790ad6e2416e3f9757a90e
@@ -107,10 +107,7 @@ class Thor
107
107
  #
108
108
  def replace!(regexp, string, force)
109
109
  content = File.read(destination)
110
- before, after = content.split(regexp, 2)
111
- snippet = (behavior == :after ? after : before).to_s
112
-
113
- if force || !snippet.include?(replacement)
110
+ if force || !content.include?(replacement)
114
111
  success = content.gsub!(regexp, string)
115
112
 
116
113
  File.open(destination, "wb") { |file| file.write(content) } unless pretend?
data/lib/thor/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Thor
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
data/thor.gemspec CHANGED
@@ -18,7 +18,8 @@ Gem::Specification.new do |spec|
18
18
  "changelog_uri" => "https://github.com/rails/thor/releases/tag/v#{Thor::VERSION}",
19
19
  "documentation_uri" => "http://whatisthor.com/",
20
20
  "source_code_uri" => "https://github.com/rails/thor/tree/v#{Thor::VERSION}",
21
- "wiki_uri" => "https://github.com/rails/thor/wiki"
21
+ "wiki_uri" => "https://github.com/rails/thor/wiki",
22
+ "rubygems_mfa_required" => "true",
22
23
  }
23
24
  spec.require_paths = %w(lib)
24
25
  spec.required_ruby_version = ">= 2.0.0"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yehuda Katz
@@ -80,10 +80,11 @@ licenses:
80
80
  - MIT
81
81
  metadata:
82
82
  bug_tracker_uri: https://github.com/rails/thor/issues
83
- changelog_uri: https://github.com/rails/thor/releases/tag/v1.2.0
83
+ changelog_uri: https://github.com/rails/thor/releases/tag/v1.2.1
84
84
  documentation_uri: http://whatisthor.com/
85
- source_code_uri: https://github.com/rails/thor/tree/v1.2.0
85
+ source_code_uri: https://github.com/rails/thor/tree/v1.2.1
86
86
  wiki_uri: https://github.com/rails/thor/wiki
87
+ rubygems_mfa_required: 'true'
87
88
  post_install_message:
88
89
  rdoc_options: []
89
90
  require_paths: