tcravit_ruby_lib 0.2.8 → 0.2.9

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: 99beb5b023dc1d79ac40040e472823a0c930a60c9675fc7915efa3fd9be6c4b5
4
- data.tar.gz: 5c663f58eb23d5530476bbdf3d7551f4fe36b01649f5063047b55f2f4acc2e9b
3
+ metadata.gz: 738b02c01ab2fb2bef3e8d5476cda01b21a9f895d31f4134fd9948eb81d4cfc3
4
+ data.tar.gz: 4741c54056ab3ec2e1e510c6a237251d28a9bb11ad4677206bd799459216eb46
5
5
  SHA512:
6
- metadata.gz: f80ddab2f052a5042fd3ee8be67d00d71010611e7ca4e3b04e686d8fad808f886ff9a8be0f6e1fe4f8bcc59260ff16a4a687505668743d3db96529c7d427761d
7
- data.tar.gz: 41012afc7344c3fbf42fdb1d8d3d0e6ddf751b23da64e7c431a81fd5103dfd24dda7c9b4f7d4a778c1995a08b5a2eed2afe6a3941dad851c24321a2cf19261c4
6
+ metadata.gz: c904c38d3f6288af26b76a3d18d913fcb5111e590b0a699ef1fe848c6fe09784860d763b0dbd44c9f73d701b2b66e1242aace05dcc8394c202caad430c3bcc7d
7
+ data.tar.gz: 22913a4c2f7332b4cef43553185015279ab402c2bdfd5bce73ebf273ed7aa089e3e2f0f2abf42e3de7937a4b3d02f6d75af49c6e887cc2162f9adf3b011fb358
@@ -73,7 +73,7 @@ def update_gem_version_part(index=2, test_mode=false)
73
73
  version_file = load_gem_version_file
74
74
  module_name = find_module_name_from(version_file)
75
75
 
76
- vd = TcravitRubyLib::VERSION_DATA
76
+ vd = instance_eval "#{module_name}::VERSION_DATA"
77
77
  vd[index] = vd[index] + 1
78
78
  if (index < 2)
79
79
  vd[2] = 0
@@ -1,4 +1,4 @@
1
1
  module TcravitRubyLib
2
- VERSION_DATA = [0, 2, 8]
2
+ VERSION_DATA = [0, 2, 9]
3
3
  VERSION = VERSION_DATA.join(".")
4
4
  end
@@ -36,24 +36,21 @@ RSpec.describe "TcravitRubyLib::AppBanner" do
36
36
  it "to allow you to make a banner with just a name" do
37
37
  ab = TcravitRubyLib::Banner(name: "MyApp")
38
38
  lines = ab.split("\n")
39
- expect(lines[1]).to match(/^\*\s+MyApp/)
40
- expect(lines[1]).to match(/\s+\*$/)
39
+ expect(lines[1]).to match(/^\*\s+MyApp\s+\*$/)
41
40
  expect(lines[1].length).to be == 76
42
41
  end
43
42
 
44
43
  it "to allow you to make a banner with a name and description" do
45
44
  ab = TcravitRubyLib::Banner(name: "MyApp", description: "Do some super cool stuff")
46
45
  lines = ab.split("\n")
47
- expect(lines[1]).to match(/^\*\s+MyApp: Do some super cool stuff/)
48
- expect(lines[1]).to match(/\s+\*$/)
46
+ expect(lines[1]).to match(/^\*\s+MyApp: Do some super cool stuff\s+\*$/)
49
47
  expect(lines[1].length).to be == 76
50
48
  end
51
49
 
52
50
  it "to allow you to make a banner with a name and date" do
53
51
  ab = TcravitRubyLib::Banner(name: "MyApp", date: "2018-01-01")
54
52
  lines = ab.split("\n")
55
- expect(lines[1]).to match(/^\*\s+MyApp/)
56
- expect(lines[1]).to match(/\s+\*$/)
53
+ expect(lines[1]).to match(/^\*\s+MyApp\s+\*$/)
57
54
  expect(lines[1].length).to be == 76
58
55
  expect(lines[2]).to match(/^\*\s+2018-01-01\s+\*$/)
59
56
  expect(lines[2].length).to be == 76
@@ -62,8 +59,7 @@ RSpec.describe "TcravitRubyLib::AppBanner" do
62
59
  it "to allow you to make a banner with a name, date, description" do
63
60
  ab = TcravitRubyLib::Banner(name: "MyApp", description: "Do some super cool stuff", date: "2018-01-01")
64
61
  lines = ab.split("\n")
65
- expect(lines[1]).to match(/^\*\s+MyApp: Do some super cool stuff/)
66
- expect(lines[1]).to match(/\s+\*$/)
62
+ expect(lines[1]).to match(/^\*\s+MyApp: Do some super cool stuff\s+\*$/)
67
63
  expect(lines[1].length).to be == 76
68
64
  expect(lines[2]).to match(/^\*\s+2018-01-01\s+\*$/)
69
65
  expect(lines[2].length).to be == 76
@@ -72,8 +68,7 @@ RSpec.describe "TcravitRubyLib::AppBanner" do
72
68
  it "to allow you to make a banner with a name, date, description, version" do
73
69
  ab = TcravitRubyLib::Banner(name: "MyApp", description: "Do some super cool stuff", date: "2018-01-01", version: "1.0.1")
74
70
  lines = ab.split("\n")
75
- expect(lines[1]).to match(/^\*\s+MyApp: Do some super cool stuff/)
76
- expect(lines[1]).to match(/\s+\*$/)
71
+ expect(lines[1]).to match(/^\*\s+MyApp: Do some super cool stuff\s+\*$/)
77
72
  expect(lines[1].length).to be == 76
78
73
  expect(lines[2]).to match(/^\*\s+Version 1.0.1, 2018-01-01\s+\*$/)
79
74
  expect(lines[2].length).to be == 76
@@ -82,8 +77,7 @@ RSpec.describe "TcravitRubyLib::AppBanner" do
82
77
  it "to allow you to make a banner with a name, date, description, version, author" do
83
78
  ab = TcravitRubyLib::Banner(name: "MyApp", description: "Do some super cool stuff", date: "2018-01-01", version: "1.0.1", author: "John Doe")
84
79
  lines = ab.split("\n")
85
- expect(lines[1]).to match(/^\*\s+MyApp: Do some super cool stuff/)
86
- expect(lines[1]).to match(/\s+\*$/)
80
+ expect(lines[1]).to match(/^\*\s+MyApp: Do some super cool stuff\s+\*$/)
87
81
  expect(lines[1].length).to be == 76
88
82
  expect(lines[2]).to match(/^\*\s+Version 1.0.1, 2018-01-01, John Doe\s+\*$/)
89
83
  expect(lines[2].length).to be == 76
@@ -106,8 +100,7 @@ RSpec.describe "TcravitRubyLib::AppBanner" do
106
100
  ab = TcravitRubyLib::Banner(name: "MyApp", description: "Do some super cool stuff", line_length: 133)
107
101
  lines = ab.split("\n")
108
102
  expect(lines[0]).to be == ("*" * 133)
109
- expect(lines[1]).to match(/^\*\s+MyApp: Do some super cool stuff/)
110
- expect(lines[1]).to match(/\s+\*$/)
103
+ expect(lines[1]).to match(/^\*\s+MyApp: Do some super cool stuff\s+\*$/)
111
104
  expect(lines[1].length).to be == 133
112
105
  expect(lines[2]).to be == ("*" * 133)
113
106
  end
@@ -24,13 +24,14 @@ require "rake"
24
24
  require "tcravit_ruby_lib/rake_tasks"
25
25
  require "fantaskspec"
26
26
 
27
+ # Load our custom test matchers. require_custom_matcher_named is a bit of
28
+ # syntactic sugar defined in spec_helper.rb
27
29
  require_custom_matcher_named("be_a_rake_task_named")
28
30
  require_custom_matcher_named("be_a_valid_gem_version_file_for")
29
31
  require_custom_matcher_named("declare_the_gem_version_to_be")
30
32
 
31
- @test_version_file = "/tmp/bump_ver.out"
33
+ RSpec.describe "bump_ver.rake" do
32
34
 
33
- describe "bump_ver.rake" do
34
35
  describe "version:bump:major", type: :rake do
35
36
  before(:all) do
36
37
  @test_version_file = "/tmp/bump_ver_major.out"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tcravit_ruby_lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tammy Cravit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-06 00:00:00.000000000 Z
11
+ date: 2018-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simple-password-gen
@@ -106,6 +106,7 @@ files:
106
106
  - lib/tcravit_ruby_lib/version.rb
107
107
  - spec/app_banner_spec.rb
108
108
  - spec/app_config_spec.rb
109
+ - spec/bump_version_rake_tasks_spec.rb
109
110
  - spec/config_searcher_spec.rb
110
111
  - spec/configurable_spec.rb
111
112
  - spec/global_spec.rb
@@ -115,7 +116,6 @@ files:
115
116
  - spec/support/matchers/declare_the_gem_version_to_be_matcher.rb
116
117
  - spec/support/matchers/matcher_helpers.rb
117
118
  - spec/utility_spec.rb
118
- - spec/version_bump_rake_tasks_spec.rb
119
119
  - tcravit_ruby_lib.gemspec
120
120
  homepage: https://github.com/tammycravit/tcravit_ruby_lib
121
121
  licenses: