step-up 0.9.2 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/GEM_VERSION +1 -1
  3. data/lib/step-up/cli.rb +7 -3
  4. metadata +13 -21
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: bf6868e93e9c2c3fb67af31efb0e0a878a534ef3
4
+ data.tar.gz: 0b00af93fde08866ae04b4f5295a1f87b3a70cdb
5
+ SHA512:
6
+ metadata.gz: 0093e9ee7ba24112e5e617661453e2bf19f26054e335e17ef88e33861ae94e476d97661f2494be74fbfb43c7f23d1741d71db83dced3cd1eebac3ae2895a0f23
7
+ data.tar.gz: d178135b6bdd49221c9be5eb4dba030dd107594e28ebedd86edd7a819e3f174ad2358b1a0dc1a2b964a30e2f69317577d77434020a806726f57ad0518a781187
@@ -1 +1 @@
1
- v0.9.2
1
+ v0.9.3
@@ -22,7 +22,7 @@ module StepUp
22
22
  action = "show"
23
23
  end
24
24
  @commit_object = commit_base
25
- if self.respond_to?("version_#{action}")
25
+ if internal_respond_to?("version_#{action}")
26
26
  send("version_#{action}")
27
27
  else
28
28
  puts "invalid action: #{action}"
@@ -51,7 +51,7 @@ module StepUp
51
51
  def changelog
52
52
  log = []
53
53
  method_name = "changelog_format_#{ options[:format] }"
54
- method_name = "changelog_format_default" unless respond_to?(method_name)
54
+ method_name = "changelog_format_default" unless internal_respond_to?(method_name)
55
55
  driver = driver(options[:mask])
56
56
  driver.all_version_tags.each_with_index do |tag, index|
57
57
  break if options[:top] && index >= options[:top]
@@ -72,7 +72,7 @@ module StepUp
72
72
  action = "show"
73
73
  end
74
74
  @commit_object = commit_base
75
- if self.respond_to?("notes_#{action}")
75
+ if internal_respond_to?("notes_#{action}")
76
76
  check_notes_config && send("notes_#{action}")
77
77
  else
78
78
  puts "invalid action: #{action}"
@@ -87,6 +87,10 @@ module StepUp
87
87
 
88
88
  protected
89
89
 
90
+ def internal_respond_to?(method)
91
+ respond_to?(method) || respond_to?(:protected_methods) && protected_methods.include?(method.to_sym)
92
+ end
93
+
90
94
  def changelog_format_default(tag, tag_info)
91
95
  created_at = tag_info[:date].strftime("%b/%d %Y %H:%M %z")
92
96
  "\033[0;33m#{tag} (#{created_at} by #{tag_info[:tagger]})\033[0m\n\n#{ tag_info[:message] }"
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: step-up
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
5
- prerelease:
4
+ version: 0.9.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Marcelo Manzan
@@ -10,54 +9,48 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2013-09-13 00:00:00.000000000 Z
12
+ date: 2013-12-04 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: thor
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
- - - ! '>='
18
+ - - '>='
21
19
  - !ruby/object:Gem::Version
22
20
  version: 0.14.6
23
21
  type: :runtime
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
24
  requirements:
28
- - - ! '>='
25
+ - - '>='
29
26
  - !ruby/object:Gem::Version
30
27
  version: 0.14.6
31
28
  - !ruby/object:Gem::Dependency
32
29
  name: rspec
33
30
  requirement: !ruby/object:Gem::Requirement
34
- none: false
35
31
  requirements:
36
- - - ! '>='
32
+ - - '>='
37
33
  - !ruby/object:Gem::Version
38
34
  version: '0'
39
35
  type: :development
40
36
  prerelease: false
41
37
  version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
38
  requirements:
44
- - - ! '>='
39
+ - - '>='
45
40
  - !ruby/object:Gem::Version
46
41
  version: '0'
47
42
  - !ruby/object:Gem::Dependency
48
43
  name: mocha
49
44
  requirement: !ruby/object:Gem::Requirement
50
- none: false
51
45
  requirements:
52
- - - ! '>='
46
+ - - '>='
53
47
  - !ruby/object:Gem::Version
54
48
  version: '0'
55
49
  type: :development
56
50
  prerelease: false
57
51
  version_requirements: !ruby/object:Gem::Requirement
58
- none: false
59
52
  requirements:
60
- - - ! '>='
53
+ - - '>='
61
54
  - !ruby/object:Gem::Version
62
55
  version: '0'
63
56
  description: StepUp manages a project's versioning through its entire lifecycle
@@ -98,27 +91,26 @@ files:
98
91
  - spec/spec_helper.rb
99
92
  homepage: https://github.com/kawamanza/step-up
100
93
  licenses: []
94
+ metadata: {}
101
95
  post_install_message:
102
96
  rdoc_options: []
103
97
  require_paths:
104
98
  - lib
105
99
  required_ruby_version: !ruby/object:Gem::Requirement
106
- none: false
107
100
  requirements:
108
- - - ! '>='
101
+ - - '>='
109
102
  - !ruby/object:Gem::Version
110
103
  version: '0'
111
104
  required_rubygems_version: !ruby/object:Gem::Requirement
112
- none: false
113
105
  requirements:
114
- - - ! '>='
106
+ - - '>='
115
107
  - !ruby/object:Gem::Version
116
108
  version: 1.3.6
117
109
  requirements: []
118
110
  rubyforge_project: step-up
119
- rubygems_version: 1.8.23
111
+ rubygems_version: 2.0.3
120
112
  signing_key:
121
- specification_version: 3
113
+ specification_version: 4
122
114
  summary: The best way to manage your project's versioning
123
115
  test_files:
124
116
  - spec/lib/config_spec.rb