gem_sarne 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 8fc4639ccd0030c98fb8ac97a76181dd011980f5
4
- data.tar.gz: 94b8f88a07cad02613345fad8ebf3bd94bedd040
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NDVlODMwYjMwZjRjYmUyYTBjZmM3NTJlNGJhMWUzOWIzNGQ0YjM4MQ==
5
+ data.tar.gz: !binary |-
6
+ ZTU0ZDkxYTYwY2U1Yjk4ZGJjY2U0MGFlZTI4YTI5ZjJkZTVlZjJmOA==
5
7
  SHA512:
6
- metadata.gz: 8e37c1bfc243bec4a427dd16ecb83af7d41e2f7ab80b15c4de433644a94aa27bf7b604e3f06f7b5af7ad70304bfc565a9d7db93ab216bb4ad2a9242a9f915214
7
- data.tar.gz: a430f496d6253dfb77f71a19e319e017c3f8e6c1c872a7d1d289ab4a97d9323fabcc9327f900783d0e3953c0b26bdc5dfef95c643524ff61990cbeaa92946e88
8
+ metadata.gz: !binary |-
9
+ NWZkNzVhMWUxNGYwNDg5YTBlZGU5YWJkZTI1YWM1YzE0MzVlNTg0MjQxZmM2
10
+ OGI3NWEyYWQyNTdmMTdlNGE5ODFlZDc1NDg3ZWFkNWUyNWMwMzllMjc2ZjNm
11
+ N2Y2NGJmOThjY2MwZTJmNGU2OTY1ZDM1ZDdlNDJmMjAwNGMwMzg=
12
+ data.tar.gz: !binary |-
13
+ YWVmYTI1ZDM0MDg2OTU2MzU3OWU3NTgyMjI5MzliMmIwOGNlMzczNDQ4MDEz
14
+ Yjk1ZDBlNTZkMmNlM2JlNGYyMjY4MGM3MTlmNjk1MjU0Mjc5OWVkYTNkYzU1
15
+ YmEwYjdjMzUzMWU5MTJlN2JkZWFiNmEzY2M3ZjA3M2Q5NWU5MmI=
@@ -0,0 +1,12 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.1.2
4
+ - 1.9.3
5
+ - jruby-19mode
6
+ - ruby-head
7
+ - jruby-head
8
+ script: rake test
9
+ notifications:
10
+ webhooks: https://gd-radiator.ngrok.com/hubot/travis?room=devlab@conference.im.office.gdi
11
+ on_success: always
12
+ on_failure: always
data/Rakefile CHANGED
@@ -1 +1,6 @@
1
1
  require "bundler/gem_tasks"
2
+ require 'rake/testtask'
3
+
4
+ Rake::TestTask.new do |t|
5
+ t.pattern = "test/*_test.rb"
6
+ end
@@ -20,5 +20,6 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_development_dependency "bundler", "~> 1.5"
22
22
  spec.add_development_dependency "rake"
23
+ spec.add_development_dependency "minitest"
23
24
  spec.add_dependency "launchy"
24
25
  end
@@ -1,7 +1,25 @@
1
1
  require "launchy"
2
2
  require "gem_sarne/version"
3
3
  require "gem_sarne/cli"
4
+ require 'singleton'
5
+
6
+ class GemSarne
7
+ include Singleton # there is only one
8
+
9
+ def run
10
+ rulz
11
+ `say gem sarne`
12
+ end
13
+
14
+ def rulz
15
+ Dir[File.expand_path("../media/*", __FILE__)].each do |file|
16
+ Launchy.open(file)
17
+ end
18
+ end
19
+
20
+ def cool?
21
+ # of course, always
22
+ true
23
+ end
4
24
 
5
- module GemSarne
6
-
7
25
  end
@@ -1,10 +1,7 @@
1
- module GemSarne
1
+ class GemSarne
2
2
  class Cli
3
3
  def self.run(argv)
4
- Dir[File.expand_path("../../media/*", __FILE__)].each do |file|
5
- Launchy.open(file)
6
- end
7
- `say gem sarne`
4
+ GemSarne.instance.run
8
5
  end
9
6
  end
10
7
  end
@@ -1,3 +1,3 @@
1
- module GemSarne
2
- VERSION = "0.0.4"
1
+ class GemSarne
2
+ VERSION = "0.0.5"
3
3
  end
@@ -0,0 +1,15 @@
1
+ require "minitest/autorun"
2
+ require 'gem_sarne'
3
+
4
+ describe GemSarne do
5
+ describe 'is so cool' do
6
+ before do
7
+ @jim = GemSarne.instance # the one and only
8
+ end
9
+
10
+ it 'should always be true' do
11
+ assert_equal true, @jim.cool?
12
+ end
13
+ end
14
+
15
+ end
metadata CHANGED
@@ -1,57 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem_sarne
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Billy Reisinger
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-19 00:00:00.000000000 Z
11
+ date: 2014-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
- version_requirements: !ruby/object:Gem::Requirement
15
+ requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.5'
20
- requirement: !ruby/object:Gem::Requirement
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
21
23
  requirements:
22
24
  - - ~>
23
25
  - !ruby/object:Gem::Version
24
26
  version: '1.5'
25
- prerelease: false
26
- type: :development
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
29
36
  version_requirements: !ruby/object:Gem::Requirement
30
37
  requirements:
31
- - - '>='
38
+ - - ! '>='
32
39
  - !ruby/object:Gem::Version
33
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: minitest
34
43
  requirement: !ruby/object:Gem::Requirement
35
44
  requirements:
36
- - - '>='
45
+ - - ! '>='
37
46
  - !ruby/object:Gem::Version
38
47
  version: '0'
39
- prerelease: false
40
48
  type: :development
41
- - !ruby/object:Gem::Dependency
42
- name: launchy
49
+ prerelease: false
43
50
  version_requirements: !ruby/object:Gem::Requirement
44
51
  requirements:
45
- - - '>='
52
+ - - ! '>='
46
53
  - !ruby/object:Gem::Version
47
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: launchy
48
57
  requirement: !ruby/object:Gem::Requirement
49
58
  requirements:
50
- - - '>='
59
+ - - ! '>='
51
60
  - !ruby/object:Gem::Version
52
61
  version: '0'
53
- prerelease: false
54
62
  type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ! '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
55
69
  description: Death Stare
56
70
  email:
57
71
  - billy.reisinger@govdelivery.com
@@ -61,6 +75,7 @@ extensions: []
61
75
  extra_rdoc_files: []
62
76
  files:
63
77
  - .gitignore
78
+ - .travis.yml
64
79
  - Gemfile
65
80
  - LICENSE.txt
66
81
  - README.md
@@ -73,28 +88,30 @@ files:
73
88
  - lib/media/barbie.png
74
89
  - lib/media/jim-sarne-2.jpg
75
90
  - lib/media/jim-sarne.png
91
+ - test/gem_sarne_test.rb
76
92
  homepage: http://github.com/govdelivery/gem_sarne
77
93
  licenses:
78
94
  - MIT
79
95
  metadata: {}
80
- post_install_message:
96
+ post_install_message:
81
97
  rdoc_options: []
82
98
  require_paths:
83
99
  - lib
84
100
  required_ruby_version: !ruby/object:Gem::Requirement
85
101
  requirements:
86
- - - '>='
102
+ - - ! '>='
87
103
  - !ruby/object:Gem::Version
88
104
  version: '0'
89
105
  required_rubygems_version: !ruby/object:Gem::Requirement
90
106
  requirements:
91
- - - '>='
107
+ - - ! '>='
92
108
  - !ruby/object:Gem::Version
93
109
  version: '0'
94
110
  requirements: []
95
- rubyforge_project:
96
- rubygems_version: 2.1.9
97
- signing_key:
111
+ rubyforge_project:
112
+ rubygems_version: 2.4.2
113
+ signing_key:
98
114
  specification_version: 4
99
115
  summary: Gemes Sarne
100
- test_files: []
116
+ test_files:
117
+ - test/gem_sarne_test.rb