idiotz 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +50 -1
- data/exe/idiotz +3 -0
- data/idiotz.gemspec +10 -0
- data/lib/idiotz/cli.rb +16 -0
- data/lib/idiotz/highlight.rb +8 -0
- data/lib/idiotz/hola.rb +15 -0
- data/lib/idiotz/version.rb +1 -1
- data/lib/idiotz.rb +1 -0
- metadata +64 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1a7d1e8b3ed7623b8abc29cf9671b503d99abcf
|
4
|
+
data.tar.gz: cc09c49f661fac1db4d8c78906f16bbd43c7b8dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1d87e546b67a4d310bab58186891b160bec9d35750354b2b2b3dec7067636b81a6699d738eb1e2001df8436a8ff8a2656d922a2a6e5399f960534c15d72f458
|
7
|
+
data.tar.gz: d6649691f9747ae7eba8e646f678dfb21b318fc96b343743059848ab96f75dba68019ff97656ac029f29afbf92c94a7c225d2d47134a811e0cb7b284554c2c43
|
data/Gemfile.lock
CHANGED
@@ -1,12 +1,55 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
idiotz (0.
|
4
|
+
idiotz (0.2.0)
|
5
|
+
activesupport (~> 5.0.0)
|
6
|
+
thor
|
5
7
|
|
6
8
|
GEM
|
7
9
|
remote: https://rubygems.org/
|
8
10
|
specs:
|
11
|
+
activesupport (5.0.7)
|
12
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
13
|
+
i18n (>= 0.7, < 2)
|
14
|
+
minitest (~> 5.1)
|
15
|
+
tzinfo (~> 1.1)
|
16
|
+
aruba (0.14.5)
|
17
|
+
childprocess (>= 0.6.3, < 0.10.0)
|
18
|
+
contracts (~> 0.9)
|
19
|
+
cucumber (>= 1.3.19)
|
20
|
+
ffi (~> 1.9.10)
|
21
|
+
rspec-expectations (>= 2.99)
|
22
|
+
thor (~> 0.19)
|
23
|
+
backports (3.11.3)
|
24
|
+
builder (3.2.3)
|
25
|
+
childprocess (0.9.0)
|
26
|
+
ffi (~> 1.0, >= 1.0.11)
|
27
|
+
concurrent-ruby (1.0.5)
|
28
|
+
contracts (0.16.0)
|
29
|
+
cucumber (3.1.0)
|
30
|
+
builder (>= 2.1.2)
|
31
|
+
cucumber-core (~> 3.1.0)
|
32
|
+
cucumber-expressions (~> 5.0.4)
|
33
|
+
cucumber-wire (~> 0.0.1)
|
34
|
+
diff-lcs (~> 1.3)
|
35
|
+
gherkin (~> 5.0)
|
36
|
+
multi_json (>= 1.7.5, < 2.0)
|
37
|
+
multi_test (>= 0.1.2)
|
38
|
+
cucumber-core (3.1.0)
|
39
|
+
backports (>= 3.8.0)
|
40
|
+
cucumber-tag_expressions (~> 1.1.0)
|
41
|
+
gherkin (>= 5.0.0)
|
42
|
+
cucumber-expressions (5.0.17)
|
43
|
+
cucumber-tag_expressions (1.1.1)
|
44
|
+
cucumber-wire (0.0.1)
|
9
45
|
diff-lcs (1.3)
|
46
|
+
ffi (1.9.23)
|
47
|
+
gherkin (5.0.0)
|
48
|
+
i18n (1.0.1)
|
49
|
+
concurrent-ruby (~> 1.0)
|
50
|
+
minitest (5.11.3)
|
51
|
+
multi_json (1.13.1)
|
52
|
+
multi_test (0.1.2)
|
10
53
|
rake (10.5.0)
|
11
54
|
rspec (3.7.0)
|
12
55
|
rspec-core (~> 3.7.0)
|
@@ -21,12 +64,18 @@ GEM
|
|
21
64
|
diff-lcs (>= 1.2.0, < 2.0)
|
22
65
|
rspec-support (~> 3.7.0)
|
23
66
|
rspec-support (3.7.1)
|
67
|
+
thor (0.20.0)
|
68
|
+
thread_safe (0.3.6)
|
69
|
+
tzinfo (1.2.5)
|
70
|
+
thread_safe (~> 0.1)
|
24
71
|
|
25
72
|
PLATFORMS
|
26
73
|
ruby
|
27
74
|
|
28
75
|
DEPENDENCIES
|
76
|
+
aruba
|
29
77
|
bundler (~> 1.16)
|
78
|
+
cucumber
|
30
79
|
idiotz!
|
31
80
|
rake (~> 10.0)
|
32
81
|
rspec (~> 3.0)
|
data/exe/idiotz
ADDED
data/idiotz.gemspec
CHANGED
@@ -30,7 +30,17 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
31
31
|
spec.require_paths = ["lib"]
|
32
32
|
|
33
|
+
# Using other gems
|
34
|
+
spec.add_dependency "activesupport", "~> 5.0.0"
|
35
|
+
spec.add_dependency "thor"
|
36
|
+
|
33
37
|
spec.add_development_dependency "bundler", "~> 1.16"
|
34
38
|
spec.add_development_dependency "rake", "~> 10.0"
|
39
|
+
|
40
|
+
# Testing our gem
|
35
41
|
spec.add_development_dependency "rspec", "~> 3.0"
|
42
|
+
|
43
|
+
# Testing a command line interface
|
44
|
+
spec.add_development_dependency "cucumber"
|
45
|
+
spec.add_development_dependency "aruba"
|
36
46
|
end
|
data/lib/idiotz/cli.rb
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'thor'
|
2
|
+
require 'Idiotz'
|
3
|
+
|
4
|
+
module Idiotz
|
5
|
+
class CLI < Thor
|
6
|
+
desc "Say Hi", "Hello World"
|
7
|
+
def hola
|
8
|
+
puts Idiotz::Hola.hi
|
9
|
+
end
|
10
|
+
|
11
|
+
desc 'highlight', "Highlight Code"
|
12
|
+
def highlight
|
13
|
+
Idiotz::Highlight.execute
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/lib/idiotz/hola.rb
ADDED
data/lib/idiotz/version.rb
CHANGED
data/lib/idiotz.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: idiotz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ZhenyuanLau
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activesupport
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 5.0.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 5.0.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: thor
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
13
41
|
- !ruby/object:Gem::Dependency
|
14
42
|
name: bundler
|
15
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,10 +80,39 @@ dependencies:
|
|
52
80
|
- - "~>"
|
53
81
|
- !ruby/object:Gem::Version
|
54
82
|
version: '3.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: cucumber
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: aruba
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
55
111
|
description: Idiotz does what you told it.
|
56
112
|
email:
|
57
113
|
- zhenyuanlau@icloud.com
|
58
|
-
executables:
|
114
|
+
executables:
|
115
|
+
- idiotz
|
59
116
|
extensions: []
|
60
117
|
extra_rdoc_files: []
|
61
118
|
files:
|
@@ -70,8 +127,12 @@ files:
|
|
70
127
|
- Rakefile
|
71
128
|
- bin/console
|
72
129
|
- bin/setup
|
130
|
+
- exe/idiotz
|
73
131
|
- idiotz.gemspec
|
74
132
|
- lib/idiotz.rb
|
133
|
+
- lib/idiotz/cli.rb
|
134
|
+
- lib/idiotz/highlight.rb
|
135
|
+
- lib/idiotz/hola.rb
|
75
136
|
- lib/idiotz/version.rb
|
76
137
|
homepage: https://rubygems.org/gems/idiotz
|
77
138
|
licenses:
|