ry 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e3a41820ffaff2e0a95e1c93ecc7418b634297fe
4
+ data.tar.gz: a43cb3d313ae4f4b7ec924793d3b57cf052957ee
5
+ SHA512:
6
+ metadata.gz: 77e273c8ce91d000525cdb99a1b108492febb2dca3c6e574ed721b5b2ce42e856dac4bd0a89693c66a42d81e411c78f17826b037451db2f268512fc44234e4c3
7
+ data.tar.gz: 2d65d47ee1f9499f7b95bd06ead6e57625759c474498be4fb53c1b22fb71d8b9d31a854c8a7ad1aad64d5f74708f4ca9969b97a1817366826b697ae26e0a1a3a
@@ -0,0 +1,4 @@
1
+ .DS_Store
2
+ results.html
3
+ pkg
4
+ html
@@ -0,0 +1 @@
1
+ ry
@@ -0,0 +1 @@
1
+ 2.2.2
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2.2
4
+ before_install: gem install bundler -v 1.10.4
@@ -0,0 +1,5 @@
1
+ # Change Log
2
+
3
+ ## [0.0.1] - 2015-06-23
4
+ ### Added
5
+ - RubyGems publish from the initial skeleton
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in ry.gemspec
4
+ gemspec
@@ -0,0 +1,66 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ ry (0.0.1)
5
+ methadone-rehab (~> 1.9.2)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ aruba (0.6.2)
11
+ childprocess (>= 0.3.6)
12
+ cucumber (>= 1.1.1)
13
+ rspec-expectations (>= 2.7.0)
14
+ builder (3.2.2)
15
+ childprocess (0.5.6)
16
+ ffi (~> 1.0, >= 1.0.11)
17
+ cucumber (2.0.0)
18
+ builder (>= 2.1.2)
19
+ cucumber-core (~> 1.1.3)
20
+ diff-lcs (>= 1.1.3)
21
+ gherkin (~> 2.12)
22
+ multi_json (>= 1.7.5, < 2.0)
23
+ multi_test (>= 0.1.2)
24
+ cucumber-core (1.1.3)
25
+ gherkin (~> 2.12.0)
26
+ diff-lcs (1.2.5)
27
+ ffi (1.9.8)
28
+ gherkin (2.12.2)
29
+ multi_json (~> 1.3)
30
+ methadone-rehab (1.9.2)
31
+ bundler
32
+ multi_json (1.11.1)
33
+ multi_test (0.1.2)
34
+ power_assert (0.2.3)
35
+ rake (10.4.2)
36
+ rdoc (4.2.0)
37
+ rspec (3.3.0)
38
+ rspec-core (~> 3.3.0)
39
+ rspec-expectations (~> 3.3.0)
40
+ rspec-mocks (~> 3.3.0)
41
+ rspec-core (3.3.1)
42
+ rspec-support (~> 3.3.0)
43
+ rspec-expectations (3.3.0)
44
+ diff-lcs (>= 1.2.0, < 2.0)
45
+ rspec-support (~> 3.3.0)
46
+ rspec-mocks (3.3.1)
47
+ diff-lcs (>= 1.2.0, < 2.0)
48
+ rspec-support (~> 3.3.0)
49
+ rspec-support (3.3.0)
50
+ test-unit (3.1.2)
51
+ power_assert
52
+
53
+ PLATFORMS
54
+ ruby
55
+
56
+ DEPENDENCIES
57
+ aruba (~> 0.6)
58
+ bundler (~> 1.10)
59
+ rake (~> 10.4)
60
+ rdoc (~> 4.2)
61
+ rspec (~> 3)
62
+ ry!
63
+ test-unit
64
+
65
+ BUNDLED WITH
66
+ 1.10.4
@@ -0,0 +1,8 @@
1
+ Name: ry
2
+ Copyright (c) 2015 Enemy & Sons Oy
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
5
+
6
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,36 @@
1
+ # Ry
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/ry`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'ry'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install ry
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake false` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/ry.
36
+
@@ -0,0 +1,66 @@
1
+ def dump_load_path
2
+ puts $LOAD_PATH.join("\n")
3
+ found = nil
4
+ $LOAD_PATH.each do |path|
5
+ if File.exists?(File.join(path,"rspec"))
6
+ puts "Found rspec in #{path}"
7
+ if File.exists?(File.join(path,"rspec","core"))
8
+ puts "Found core"
9
+ if File.exists?(File.join(path,"rspec","core","rake_task"))
10
+ puts "Found rake_task"
11
+ found = path
12
+ else
13
+ puts "!! no rake_task"
14
+ end
15
+ else
16
+ puts "!!! no core"
17
+ end
18
+ end
19
+ end
20
+ if found.nil?
21
+ puts "Didn't find rspec/core/rake_task anywhere"
22
+ else
23
+ puts "Found in #{path}"
24
+ end
25
+ end
26
+ require 'bundler'
27
+ require 'rake/clean'
28
+
29
+ begin
30
+ require 'rspec/core/rake_task'
31
+ rescue LoadError
32
+ dump_load_path
33
+ raise
34
+ end
35
+
36
+ require 'cucumber'
37
+ require 'cucumber/rake/task'
38
+ gem 'rdoc' # we need the installed RDoc gem, not the system one
39
+ require 'rdoc/task'
40
+
41
+ include Rake::DSL
42
+
43
+ Bundler::GemHelper.install_tasks
44
+
45
+
46
+ RSpec::Core::RakeTask.new do |t|
47
+ # Put spec opts in a file named .rspec in root
48
+ end
49
+
50
+
51
+ CUKE_RESULTS = 'results.html'
52
+ CLEAN << CUKE_RESULTS
53
+ Cucumber::Rake::Task.new(:features) do |t|
54
+ t.cucumber_opts = "features --format html -o #{CUKE_RESULTS} --format pretty --no-source -x"
55
+ t.fork = false
56
+ end
57
+
58
+ Rake::RDocTask.new do |rd|
59
+
60
+ rd.main = "README.rdoc"
61
+
62
+ rd.rdoc_files.include("README.rdoc","lib/**/*.rb","bin/**/*")
63
+ end
64
+
65
+ task :default => [:spec,:features]
66
+
data/bin/ry ADDED
@@ -0,0 +1,49 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ $LOAD_PATH.unshift File.expand_path(File.join(File.dirname(__FILE__), '../lib'))
4
+
5
+ require 'optparse'
6
+ require 'methadone'
7
+ require 'ry.rb'
8
+ require 'ry/commands'
9
+
10
+ class App
11
+ include Methadone::Main
12
+ include Methadone::CLILogging
13
+
14
+ command "frame" => Ry::Commands::Frame
15
+ command "engine" => Ry::Commands::Engine
16
+
17
+ main do # Add args you want: |like,so|
18
+ # your program code here
19
+ # You can access CLI options via
20
+ # the options Hash
21
+ end
22
+
23
+ # supplemental methods here
24
+
25
+ # Declare command-line interface here
26
+
27
+ # description "one line description of your app"
28
+ #
29
+ # Accept flags via:
30
+ # on("--flag VAL","Some flag")
31
+ # options[flag] will contain VAL
32
+ #
33
+ # Specify switches via:
34
+ # on("--[no-]switch","Some switch")
35
+ #
36
+ # Or, just call OptionParser methods on opts
37
+ #
38
+ # Require an argument
39
+ # arg :some_arg
40
+ #
41
+ # # Make an argument optional
42
+ # arg :optional_arg, :optional
43
+
44
+ version Ry::VERSION
45
+
46
+ use_log_level_option
47
+
48
+ go!
49
+ end
@@ -0,0 +1,5 @@
1
+ require "ry/version"
2
+
3
+ module Ry
4
+ # Your code goes here...
5
+ end
@@ -0,0 +1,7 @@
1
+ Dir[File.dirname(__FILE__) + '/commands/*.rb'].each {|file| require file }
2
+
3
+ module Ry
4
+ module Commands
5
+ end
6
+ end
7
+
@@ -0,0 +1,40 @@
1
+ require 'optparse'
2
+ require 'methadone'
3
+
4
+ module Ry
5
+ module Commands
6
+ class Engine
7
+ include Methadone::Main
8
+ include Methadone::CLILogging
9
+
10
+ main do # Add args you want: |like,so|
11
+ # your program code here
12
+ # You can access CLI options via
13
+ # the options Hash
14
+ end
15
+
16
+ # supplemental methods here
17
+
18
+ # Declare command-line interface here
19
+
20
+ # description "one line description of your app"
21
+ description "provides command 'engine'"
22
+
23
+ # Accept flags via:
24
+ # on("--flag VAL","Some flag")
25
+ # options[flag] will contain VAL
26
+ #
27
+ # Specify switches via:
28
+ # on("--[no-]switch","Some switch")
29
+ #
30
+ # Or, just call OptionParser methods on opts
31
+ #
32
+ # Require an argument
33
+ # arg :some_arg
34
+ #
35
+ # # Make an argument optional
36
+ # arg :optional_arg, :optional
37
+ end
38
+ end
39
+ end
40
+
@@ -0,0 +1,40 @@
1
+ require 'optparse'
2
+ require 'methadone'
3
+
4
+ module Ry
5
+ module Commands
6
+ class Frame
7
+ include Methadone::Main
8
+ include Methadone::CLILogging
9
+
10
+ main do # Add args you want: |like,so|
11
+ # your program code here
12
+ # You can access CLI options via
13
+ # the options Hash
14
+ end
15
+
16
+ # supplemental methods here
17
+
18
+ # Declare command-line interface here
19
+
20
+ # description "one line description of your app"
21
+ description "provides command 'frame'"
22
+
23
+ # Accept flags via:
24
+ # on("--flag VAL","Some flag")
25
+ # options[flag] will contain VAL
26
+ #
27
+ # Specify switches via:
28
+ # on("--[no-]switch","Some switch")
29
+ #
30
+ # Or, just call OptionParser methods on opts
31
+ #
32
+ # Require an argument
33
+ # arg :some_arg
34
+ #
35
+ # # Make an argument optional
36
+ # arg :optional_arg, :optional
37
+ end
38
+ end
39
+ end
40
+
@@ -0,0 +1,3 @@
1
+ module Ry
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,29 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'ry/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "ry"
8
+ spec.license = "mit"
9
+ spec.version = Ry::VERSION
10
+ spec.authors = ["Juha Suuraho", "Matti Paksula"]
11
+ spec.email = ["juha.suuraho@enemy.fi", "matti.paksula@enemy.fi"]
12
+
13
+ spec.summary = %q{ry (railyard) is a CLI for managing projects with multiple microservices.}
14
+ spec.homepage = "https://github.com/2http/ry"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
+ spec.bindir = "bin"
18
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency 'bundler', '~> 1.10'
22
+ spec.add_development_dependency 'rdoc', '~> 4.2'
23
+ spec.add_development_dependency 'aruba', '~> 0.6'
24
+ spec.add_development_dependency 'rake', '~> 10.4'
25
+ spec.add_development_dependency 'test-unit'
26
+ spec.add_development_dependency 'rspec', '~> 3'
27
+
28
+ spec.add_dependency 'methadone-rehab', '~> 1.9.2'
29
+ end
metadata ADDED
@@ -0,0 +1,162 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ry
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Juha Suuraho
8
+ - Matti Paksula
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2015-06-23 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: bundler
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: '1.10'
21
+ type: :development
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: '1.10'
28
+ - !ruby/object:Gem::Dependency
29
+ name: rdoc
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "~>"
33
+ - !ruby/object:Gem::Version
34
+ version: '4.2'
35
+ type: :development
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: '4.2'
42
+ - !ruby/object:Gem::Dependency
43
+ name: aruba
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - "~>"
47
+ - !ruby/object:Gem::Version
48
+ version: '0.6'
49
+ type: :development
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: '0.6'
56
+ - !ruby/object:Gem::Dependency
57
+ name: rake
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: '10.4'
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '10.4'
70
+ - !ruby/object:Gem::Dependency
71
+ name: test-unit
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
84
+ - !ruby/object:Gem::Dependency
85
+ name: rspec
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - "~>"
89
+ - !ruby/object:Gem::Version
90
+ version: '3'
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - "~>"
96
+ - !ruby/object:Gem::Version
97
+ version: '3'
98
+ - !ruby/object:Gem::Dependency
99
+ name: methadone-rehab
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - "~>"
103
+ - !ruby/object:Gem::Version
104
+ version: 1.9.2
105
+ type: :runtime
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - "~>"
110
+ - !ruby/object:Gem::Version
111
+ version: 1.9.2
112
+ description:
113
+ email:
114
+ - juha.suuraho@enemy.fi
115
+ - matti.paksula@enemy.fi
116
+ executables:
117
+ - ry
118
+ extensions: []
119
+ extra_rdoc_files: []
120
+ files:
121
+ - ".gitignore"
122
+ - ".ruby-gemset"
123
+ - ".ruby-version"
124
+ - ".travis.yml"
125
+ - CHANGELOG.md
126
+ - Gemfile
127
+ - Gemfile.lock
128
+ - LICENSE.txt
129
+ - README.md
130
+ - Rakefile
131
+ - bin/ry
132
+ - lib/ry.rb
133
+ - lib/ry/commands.rb
134
+ - lib/ry/commands/engine.rb
135
+ - lib/ry/commands/frame.rb
136
+ - lib/ry/version.rb
137
+ - ry.gemspec
138
+ homepage: https://github.com/2http/ry
139
+ licenses:
140
+ - mit
141
+ metadata: {}
142
+ post_install_message:
143
+ rdoc_options: []
144
+ require_paths:
145
+ - lib
146
+ required_ruby_version: !ruby/object:Gem::Requirement
147
+ requirements:
148
+ - - ">="
149
+ - !ruby/object:Gem::Version
150
+ version: '0'
151
+ required_rubygems_version: !ruby/object:Gem::Requirement
152
+ requirements:
153
+ - - ">="
154
+ - !ruby/object:Gem::Version
155
+ version: '0'
156
+ requirements: []
157
+ rubyforge_project:
158
+ rubygems_version: 2.4.8
159
+ signing_key:
160
+ specification_version: 4
161
+ summary: ry (railyard) is a CLI for managing projects with multiple microservices.
162
+ test_files: []