petes_test_gem 0.0.6.pre → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +2 -1
- data/Rakefile +6 -0
- data/bin/test_gem_config.yml +5 -0
- data/bin/testgem +3 -3
- data/lib/test_gem.rb +1 -1
- data/lib/test_gem/my_file.rb +1 -1
- data/lib/test_gem/version.rb +1 -1
- data/spec/test_gem_spec.rb +6 -5
- data/test_gem.gemspec +7 -0
- metadata +63 -7
- checksums.yaml +0 -15
data/Gemfile
CHANGED
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
|
|
3
3
|
source 'https://rubygems.org'
|
4
4
|
|
5
5
|
# Specify your gem's dependencies in test_gem.gemspec
|
6
|
-
|
6
|
+
gemspec
|
7
7
|
|
8
8
|
|
9
9
|
group :development, :test do
|
@@ -11,6 +11,7 @@ group :development, :test do
|
|
11
11
|
gem 'guard-rspec'
|
12
12
|
gem 'guard'
|
13
13
|
gem 'trollop'
|
14
|
+
gem 'rake'
|
14
15
|
|
15
16
|
end
|
16
17
|
|
data/Rakefile
CHANGED
data/bin/testgem
CHANGED
@@ -25,12 +25,12 @@ else
|
|
25
25
|
88 88 88 88 Y8a. .a88 88 88 `888' 88
|
26
26
|
88 88 88 88888888888 `"Y88888P" 88888888888 88 `8' 88
|
27
27
|
|
28
|
-
|
28
|
+
|
29
29
|
eos
|
30
30
|
|
31
31
|
|
32
32
|
opt :file, "Supply a file, including path, and it will return the first or last line line",
|
33
|
-
:type
|
33
|
+
:type => String,
|
34
34
|
:short => 'f'
|
35
35
|
|
36
36
|
opt :init, "Initialize a config file",
|
@@ -55,7 +55,7 @@ else
|
|
55
55
|
else
|
56
56
|
raise ArgumentError.new("seriously, 'first' or 'last'")
|
57
57
|
|
58
|
-
|
58
|
+
end
|
59
59
|
|
60
60
|
end
|
61
61
|
|
data/lib/test_gem.rb
CHANGED
@@ -27,7 +27,7 @@ module TestGem
|
|
27
27
|
data = { :default_file_name => 'default_file.txt',
|
28
28
|
:supported_types => ['txt', 'pdf'] }.to_yaml
|
29
29
|
|
30
|
-
File.open("#{@LOAD_PATH}/test_gem_config.yml",
|
30
|
+
File.open("#{@LOAD_PATH}/test_gem_config.yml", "w") { |f| f.write(data) }
|
31
31
|
|
32
32
|
end
|
33
33
|
|
data/lib/test_gem/my_file.rb
CHANGED
data/lib/test_gem/version.rb
CHANGED
data/spec/test_gem_spec.rb
CHANGED
@@ -1,18 +1,20 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
+
FILE_PATH = File.expand_path('~/.config')
|
4
|
+
|
3
5
|
describe TestGem do
|
4
6
|
it 'should have a version number' do
|
5
7
|
TestGem::VERSION.should_not be_nil
|
6
8
|
end
|
7
|
-
|
8
|
-
describe TestGem::init_config do
|
9
|
+
|
10
|
+
describe 'TestGem::init_config' do
|
9
11
|
|
10
12
|
it "should be a method" do
|
11
|
-
TestGem.
|
13
|
+
TestGem.should respond_to :init_config
|
12
14
|
end
|
13
15
|
|
14
16
|
it "should write a file to the correct directory" do
|
15
|
-
#
|
17
|
+
File.exist?("#{FILE_PATH}/test_gem_config.yml")
|
16
18
|
end
|
17
19
|
end
|
18
20
|
|
@@ -26,5 +28,4 @@ describe TestGem do
|
|
26
28
|
|
27
29
|
|
28
30
|
end
|
29
|
-
end
|
30
31
|
|
data/test_gem.gemspec
CHANGED
@@ -20,4 +20,11 @@ Gem::Specification.new do |gem|
|
|
20
20
|
|
21
21
|
gem.add_development_dependency "rake"
|
22
22
|
gem.add_development_dependency "rspec"
|
23
|
+
gem.add_development_dependency 'guard-rspec'
|
24
|
+
gem.add_development_dependency 'rb-inotify', '~> 0.8.8'
|
25
|
+
|
26
|
+
|
27
|
+
# live dependencies
|
28
|
+
gem.add_dependency 'trollop'
|
29
|
+
|
23
30
|
end
|
metadata
CHANGED
@@ -1,18 +1,20 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: petes_test_gem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.6
|
4
|
+
version: 0.0.6
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Peter Bomars
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2013-02-
|
12
|
+
date: 2013-02-22 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: rake
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
19
|
- - ! '>='
|
18
20
|
- !ruby/object:Gem::Version
|
@@ -20,6 +22,7 @@ dependencies:
|
|
20
22
|
type: :development
|
21
23
|
prerelease: false
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
23
26
|
requirements:
|
24
27
|
- - ! '>='
|
25
28
|
- !ruby/object:Gem::Version
|
@@ -27,6 +30,7 @@ dependencies:
|
|
27
30
|
- !ruby/object:Gem::Dependency
|
28
31
|
name: rspec
|
29
32
|
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
30
34
|
requirements:
|
31
35
|
- - ! '>='
|
32
36
|
- !ruby/object:Gem::Version
|
@@ -34,6 +38,55 @@ dependencies:
|
|
34
38
|
type: :development
|
35
39
|
prerelease: false
|
36
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: guard-rspec
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: rb-inotify
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 0.8.8
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 0.8.8
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: trollop
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
type: :runtime
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
37
90
|
requirements:
|
38
91
|
- - ! '>='
|
39
92
|
- !ruby/object:Gem::Version
|
@@ -42,6 +95,7 @@ description: TestGem for class
|
|
42
95
|
email:
|
43
96
|
- pbomars@gmail.com
|
44
97
|
executables:
|
98
|
+
- test_gem_config.yml
|
45
99
|
- testgem
|
46
100
|
extensions: []
|
47
101
|
extra_rdoc_files: []
|
@@ -53,6 +107,7 @@ files:
|
|
53
107
|
- LICENSE.txt
|
54
108
|
- README.md
|
55
109
|
- Rakefile
|
110
|
+
- bin/test_gem_config.yml
|
56
111
|
- bin/testgem
|
57
112
|
- lib/test.text
|
58
113
|
- lib/test_gem.rb
|
@@ -68,26 +123,27 @@ files:
|
|
68
123
|
homepage: https://github.com/gekken/week5
|
69
124
|
licenses:
|
70
125
|
- MIT
|
71
|
-
metadata: {}
|
72
126
|
post_install_message:
|
73
127
|
rdoc_options: []
|
74
128
|
require_paths:
|
75
129
|
- lib
|
76
130
|
required_ruby_version: !ruby/object:Gem::Requirement
|
131
|
+
none: false
|
77
132
|
requirements:
|
78
133
|
- - ! '>='
|
79
134
|
- !ruby/object:Gem::Version
|
80
135
|
version: '0'
|
81
136
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
82
138
|
requirements:
|
83
|
-
- - ! '
|
139
|
+
- - ! '>='
|
84
140
|
- !ruby/object:Gem::Version
|
85
|
-
version:
|
141
|
+
version: '0'
|
86
142
|
requirements: []
|
87
143
|
rubyforge_project:
|
88
|
-
rubygems_version:
|
144
|
+
rubygems_version: 1.8.25
|
89
145
|
signing_key:
|
90
|
-
specification_version:
|
146
|
+
specification_version: 3
|
91
147
|
summary: Gem for class that reads the first and last line of a file
|
92
148
|
test_files:
|
93
149
|
- spec/my_error_spec.rb
|
checksums.yaml
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
!binary "U0hBMQ==":
|
3
|
-
metadata.gz: !binary |-
|
4
|
-
YzJkZTEwN2UyNTY3ZDc3OWRkMzhjZWQ0MmQxMjgwMzNlNjM5ZTA3Yw==
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
NWRhNTJkMDhiNjdiZGY2Mjg5MzBiMmE4OWZmYWU5NWVhNzE0NWY3Nw==
|
7
|
-
!binary "U0hBNTEy":
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
ODg4YjhjMjk1MjkzOWFhNmM3MzY3ZTc1MjgxMmQ1OTQ1ZGYzZmIwMjM2NzM5
|
10
|
-
NTFjNTZjMTM5M2MyYTg1YTRmZTMyM2I4YzIyMjk5ZDY1Nzc3ZmZkOWYyZjM5
|
11
|
-
YWEwZjUyY2ZkOWM3NzE2OTdiYjdiYzdlMTY0NjkwYzc3MzYwMDk=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
ZTU1OGU0YzRjY2FkNDA3ODNiMjUwMDc5Y2RlZGExY2U4YzkxZDEzZmRkODli
|
14
|
-
ZDI2NTQ3MGMxMjliZjc4OWZlNGJjMzZlYmUzMjllMTExOTM1MWUzNjlhMTIx
|
15
|
-
NzM4OWNjYWE3Mjg5M2U5ODA1NzVkMDI4NzNmMzdhN2RkN2JhNTQ=
|