dont_deploy_debug 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- Y2FjM2M5NDY1ZTk5OTU4NDY1NzVjNTNiYjU2Mzc0YzNiYzFmY2M1Mg==
5
- data.tar.gz: !binary |-
6
- MWYzODdiMzk2MjQxNjZhMTExMGM0MTBhZDczZjA2YTk5MzI3MWQxMQ==
2
+ SHA1:
3
+ metadata.gz: d38c07b15581936e073b5d7dc81c8bbef8c4da22
4
+ data.tar.gz: ccce029fbd1009d65b95e0847478d3750d78685f
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- YWUzYWY2NGEzMjllNzA1NjE1MmJjNTNhY2UyNTE2NTRlOGQ3Zjc2NjEwNzEz
10
- MjJmYjg3Y2IxNTAzMDA1YTdhZjkxMDBmZmZiYjk3YmU3MDc3NTI3NDA1ZDc1
11
- MGQxNTRiMDg5MDM4ZTI5MDI0NzVkNzhiOTcxMTliZDk4NjU0Njk=
12
- data.tar.gz: !binary |-
13
- NjZkZWMzN2FmYWNmNTc4MzE4M2JlMTM4Njc2NTFjYWVjNTAwNDgxYjg4MThj
14
- MWQ3MTcwODk4ZDc4ZWViYjI4MTI5NTU5N2E5MDhiZGRkNDJiZjc5ZTRjNDc2
15
- YjlmMWY2MjhiYzNiYzg2MDZlZGFkMmZmOWE4ODU5MDk4YjJjNWM=
6
+ metadata.gz: 0b63e75980bf90ac1f36fb72086deb9f67cdec4cb91f8c492a17df515289d93c7e17d91d390b70462c5b265d0a2980cc58d2730f185c894865ae8670a5c4f094
7
+ data.tar.gz: 34363f4ce71e63af9a9dc8dbc01ae590db1ad79081c63cb3ee6fdff7a323ed1178c8ba80766e1a4f41c2d2aec9b536f34c35554bbe0bcacc7783690cc40fd914
data/README.md CHANGED
@@ -16,7 +16,7 @@ Example:
16
16
  ```
17
17
  triggering after callbacks for `deploy:finalize_update'
18
18
  * 2013-11-05 16:38:44 executing `deploy:find_ruby_breakpoints'
19
- * executing "find /home/deploy/app/releases/20131105233842 -name \"*.rb\" -exec grep -Hn --regex \"[debugger|binding\\.pry]\" {} \\;"
19
+ * executing "find /home/deploy/app/releases/20131105233842 -name \"*.rb\" -exec grep -Hn 'debugger\|binding.pry' {} \\;"
20
20
  servers: ["server.example.org"]
21
21
  [server.example.org] executing command
22
22
  command finished in 621ms
@@ -78,15 +78,22 @@ any language where the source was parsable on the deployment server.
78
78
 
79
79
  Add this line to your application's Gemfile:
80
80
 
81
- gem 'dont_deploy_debug', :require => false
81
+ ```ruby
82
+ # ":require => false" is important!
83
+ gem 'dont_deploy_debug', :require => false
84
+ ```
82
85
 
83
86
  Or from the command line if you aren't using bunder:
84
87
 
85
- $ gem install dont_deploy_debug
88
+ ```
89
+ $ gem install dont_deploy_debug
90
+ ```
86
91
 
87
92
  Then, add the following to your Capistrano `deploy.rb`:
88
93
 
89
- require 'capistrano/dont_deploy_debug'
94
+ ```
95
+ require 'capistrano/dont_deploy_debug'
96
+ ```
90
97
 
91
98
  For basic usage, this is all that is required.
92
99
 
@@ -156,7 +163,7 @@ To first find the files, the gem executes a grep() of the release path to get
156
163
  used by default is:
157
164
 
158
165
  ```
159
- find #{release_path} -name "*.rb" -exec grep -Hn --regex "[debugger|binding\.pry]" {} \\;
166
+ find #{release_path} -name "*.rb" -exec grep -Hn 'debugger\|binding.pry' {} \;
160
167
  ```
161
168
 
162
169
  A find() and grep() is used instead of a recursive grep because I have no way
@@ -178,8 +185,9 @@ If you only want to change the pattern that grep() uses, you can set
178
185
  "ruby_breakpoint_trigger" instead:
179
186
 
180
187
  ```ruby
181
- # default value is '--regex "[debugger|binding\.pry]"'
182
- set :ruby_breakpoint_trigger, "some_other_pattern"
188
+ # default value is " 'debugger\|binding.pry' "
189
+ # note the single quotes!
190
+ set :ruby_breakpoint_trigger, " 'some_other_pattern' "
183
191
  ```
184
192
 
185
193
  ### Skipping check from command line
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "dont_deploy_debug"
7
- spec.version = "0.1.2"
7
+ spec.version = "0.1.3"
8
8
  spec.authors = ["Matthew Nielsen"]
9
9
  spec.email = ["xunker@pyxidis.org"]
10
10
  spec.description = %q{Don't allow a capistrano deploy if code contains ruby debug statements}
@@ -42,7 +42,7 @@ configuration.load do
42
42
  /\bbinding\.pry\b/
43
43
  ]
44
44
 
45
- set :ruby_breakpoint_trigger, '--regex "[debugger|binding\.pry]"'
45
+ set :ruby_breakpoint_trigger, "'debugger\\|binding.pry'"
46
46
 
47
47
  set :ruby_breakpoint_grep_command, Proc.new { "find #{release_path} -name \"*.rb\" -exec grep -Hn #{fetch(:ruby_breakpoint_trigger)} {} \\;" }
48
48
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dont_deploy_debug
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Nielsen
@@ -14,14 +14,14 @@ dependencies:
14
14
  name: capistrano
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
@@ -42,14 +42,14 @@ dependencies:
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ! '>='
45
+ - - '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ! '>='
52
+ - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  description: Don't allow a capistrano deploy if code contains ruby debug statements
@@ -77,17 +77,17 @@ require_paths:
77
77
  - lib
78
78
  required_ruby_version: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ! '>='
80
+ - - '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  requirements:
85
- - - ! '>='
85
+ - - '>='
86
86
  - !ruby/object:Gem::Version
87
87
  version: '0'
88
88
  requirements: []
89
89
  rubyforge_project:
90
- rubygems_version: 2.1.10
90
+ rubygems_version: 2.0.3
91
91
  signing_key:
92
92
  specification_version: 4
93
93
  summary: Don't allow a capistrano deploy if code contains ruby debug statements