lam 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +8 -16
  3. data/Gemfile +3 -3
  4. data/README.md +17 -19
  5. data/Rakefile +0 -4
  6. data/bin/console +14 -0
  7. data/bin/setup +8 -0
  8. data/lam.gemspec +20 -18
  9. data/lib/lam.rb +1 -10
  10. data/lib/lam/version.rb +1 -1
  11. metadata +21 -189
  12. data/.rspec +0 -2
  13. data/.ruby-version +0 -1
  14. data/Gemfile.lock +0 -107
  15. data/Guardfile +0 -22
  16. data/LICENSE.txt +0 -22
  17. data/bin/lam +0 -14
  18. data/lib/lam/base_controller.rb +0 -54
  19. data/lib/lam/build.rb +0 -43
  20. data/lib/lam/build/handler_generator.rb +0 -34
  21. data/lib/lam/build/lambda_deducer.rb +0 -47
  22. data/lib/lam/build/templates/handler.js +0 -156
  23. data/lib/lam/build/traveling_ruby.rb +0 -108
  24. data/lib/lam/cli.rb +0 -23
  25. data/lib/lam/cli/help.rb +0 -19
  26. data/lib/lam/command.rb +0 -25
  27. data/lib/lam/process.rb +0 -18
  28. data/lib/lam/process/base_processor.rb +0 -23
  29. data/lib/lam/process/controller_processor.rb +0 -36
  30. data/lib/lam/process/help.rb +0 -11
  31. data/lib/lam/process/processor_deducer.rb +0 -52
  32. data/lib/lam/util.rb +0 -13
  33. data/notes/design.md +0 -43
  34. data/notes/traveling-ruby-packaging-lam.md +0 -26
  35. data/notes/traveling-ruby-packaging.md +0 -103
  36. data/notes/traveling-ruby.md +0 -82
  37. data/spec/fixtures/project/.gitignore +0 -3
  38. data/spec/fixtures/project/.ruby-version +0 -1
  39. data/spec/fixtures/project/Gemfile +0 -4
  40. data/spec/fixtures/project/Gemfile.lock +0 -35
  41. data/spec/fixtures/project/app/controllers/application_controller.rb +0 -2
  42. data/spec/fixtures/project/app/controllers/posts_controller.rb +0 -12
  43. data/spec/fixtures/project/bin/lam +0 -22
  44. data/spec/fixtures/project/handlers/controllers/posts.js +0 -156
  45. data/spec/lib/cli_spec.rb +0 -20
  46. data/spec/lib/lam/base_controller_spec.rb +0 -18
  47. data/spec/lib/lam/build/lambda_deducer_spec.rb +0 -20
  48. data/spec/lib/lam/build_spec.rb +0 -29
  49. data/spec/lib/lam/process/controller_processor_spec.rb +0 -22
  50. data/spec/lib/lam/process/infer_spec.rb +0 -24
  51. data/spec/lib/lam/process_spec.rb +0 -18
  52. data/spec/spec_helper.rb +0 -25
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8750fb4fa7f6b7ed46b29b8941bc055b48358769
4
- data.tar.gz: f90803796010fce9b2038b9fdc12283bcc4c99a2
3
+ metadata.gz: 199bdf107cc94875c97e8347f7e3436d89e69bde
4
+ data.tar.gz: f8a2af141b697347308d245a8f9c27cbdc2aebb0
5
5
  SHA512:
6
- metadata.gz: 323ba3a836d5b22711cf6878ed3ae02499474469f3d5844ab4d6ac8754bebadfb1518ad43c05a5a4d69c427e8e28f88e1854c15fee0d7cde6ad5f40c7f7fb1d3
7
- data.tar.gz: 6d1d7f35ee1cb7f75c8f47811ecd9ab0bdb01f1ddbd399edc8196e69d54a4ba2ba6809323ed8791e65f23309d335d4e8782d01535e07919f2566d22521801365
6
+ metadata.gz: 167f76de1b1a3123c891a79e9deefb3a0ec6ae4e234d1e681d52a267d61d9aa4830e9bf6ed822736d2e252b35b84dbb41e2ca246d39044c7c449b723ba10b2b5
7
+ data.tar.gz: 0a10366b269cc35446709f44125a23d02c66594591f4f7c9c358d46acede47b195e81d163183e867df9590d0f25210dc698da1d2cfcad9e60979e979eda68217
data/.gitignore CHANGED
@@ -1,16 +1,8 @@
1
- *.gem
2
- *.rbc
3
- .bundle
4
- .config
5
- .yardoc
6
- InstalledFiles
7
- _yardoc
8
- coverage
9
- doc/
10
- lib/bundler/man
11
- pkg
12
- rdoc
13
- spec/reports
14
- test/tmp
15
- test/version_tmp
16
- tmp
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- # Specify your gem dependencies in lam.gemspec
4
- gemspec
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
5
4
 
6
- gem "codeclimate-test-reporter", group: :test, require: nil
5
+ # Specify your gem's dependencies in lam.gemspec
6
+ gemspec
data/README.md CHANGED
@@ -1,37 +1,35 @@
1
1
  # Lam
2
2
 
3
- [![Build Status](https://magnum.travis-ci.com/)](https://magnum.travis-ci.com/)
4
- [![Code Climate](https://codeclimate.com/)](https://codeclimate.com/)
5
- [![Code Climate](https://codeclimate.com/)](https://codeclimate.com/)
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/lam`. To experiment with that code, run `bin/console` for an interactive prompt.
6
4
 
7
- To these the lam, run these commands:
8
-
9
- TODO: Write a gem description
5
+ TODO: Delete this and the text above, and describe your gem
10
6
 
11
7
  ## Installation
12
8
 
13
9
  Add this line to your application's Gemfile:
14
10
 
15
- ```sh
16
- gem "lam"
11
+ ```ruby
12
+ gem 'lam'
17
13
  ```
18
14
 
19
15
  And then execute:
20
16
 
21
- ```sh
22
- $ bundle
23
- ```
17
+ $ bundle
24
18
 
25
19
  Or install it yourself as:
26
20
 
27
- ```
28
- $ gem install lam
29
- ```
21
+ $ gem install lam
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. 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).
30
32
 
31
33
  ## Contributing
32
34
 
33
- 1. Fork it
34
- 2. Create your feature branch (`git checkout -b my-new-feature`)
35
- 3. Commit your changes (`git commit -am "Add some feature"`)
36
- 4. Push to the branch (`git push origin my-new-feature`)
37
- 5. Create new Pull Request
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/lam.
data/Rakefile CHANGED
@@ -1,6 +1,2 @@
1
1
  require "bundler/gem_tasks"
2
- require "rspec/core/rake_task"
3
-
4
2
  task :default => :spec
5
-
6
- RSpec::Core::RakeTask.new
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "lam"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -1,4 +1,4 @@
1
- # coding: utf-8
1
+
2
2
  lib = File.expand_path("../lib", __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require "lam/version"
@@ -8,25 +8,27 @@ Gem::Specification.new do |spec|
8
8
  spec.version = Lam::VERSION
9
9
  spec.authors = ["Tung Nguyen"]
10
10
  spec.email = ["tongueroo@gmail.com"]
11
- spec.description = %q{Test}
12
- spec.summary = %q{Test}
11
+
12
+ spec.summary = %q{Lambda tool}
13
+ spec.description = %q{Lambda tool}
13
14
  spec.homepage = "https://github.com/tongueroo/lam"
14
- spec.license = "MIT"
15
15
 
16
- spec.files = `git ls-files`.split($/)
17
- spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
- spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
- spec.require_paths = ["lib"]
16
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
17
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
18
+ if spec.respond_to?(:metadata)
19
+ spec.metadata["allowed_push_host"] = 'https://rubygems.org'
20
+ else
21
+ raise "RubyGems 2.0 or newer is required to protect against " \
22
+ "public gem pushes."
23
+ end
20
24
 
21
- spec.add_dependency "thor"
22
- spec.add_dependency "hashie"
23
- spec.add_dependency "colorize"
24
- spec.add_dependency "activesupport"
25
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
26
+ f.match(%r{^(test|spec|features)/})
27
+ end
28
+ spec.bindir = "exe"
29
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
30
+ spec.require_paths = ["lib"]
25
31
 
26
- spec.add_development_dependency "bundler"
27
- spec.add_development_dependency "byebug"
28
- spec.add_development_dependency "rake"
29
- spec.add_development_dependency "guard"
30
- spec.add_development_dependency "guard-bundler"
31
- spec.add_development_dependency "guard-rspec"
32
+ spec.add_development_dependency "bundler", "~> 1.16.a"
33
+ spec.add_development_dependency "rake", "~> 10.0"
32
34
  end
data/lib/lam.rb CHANGED
@@ -1,14 +1,5 @@
1
- $:.unshift(File.expand_path("../", __FILE__))
2
1
  require "lam/version"
3
- require 'active_support/core_ext/string'
4
2
 
5
3
  module Lam
6
- autoload :Util, "lam/util"
7
- autoload :Command, "lam/command"
8
- autoload :CLI, "lam/cli"
9
- autoload :Build, 'lam/build'
10
- autoload :Process, 'lam/process'
11
- autoload :BaseController, 'lam/base_controller'
12
-
13
- extend Util
4
+ # Your code goes here...
14
5
  end
@@ -1,3 +1,3 @@
1
1
  module Lam
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,215 +1,63 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lam
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
8
8
  autorequire:
9
- bindir: bin
9
+ bindir: exe
10
10
  cert_chain: []
11
- date: 2017-10-26 00:00:00.000000000 Z
11
+ date: 2017-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: thor
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: hashie
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'
41
- - !ruby/object:Gem::Dependency
42
- name: colorize
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: activesupport
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :runtime
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
13
  - !ruby/object:Gem::Dependency
70
14
  name: bundler
71
15
  requirement: !ruby/object:Gem::Requirement
72
16
  requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: byebug
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
17
+ - - "~>"
88
18
  - !ruby/object:Gem::Version
89
- version: '0'
19
+ version: 1.16.a
90
20
  type: :development
91
21
  prerelease: false
92
22
  version_requirements: !ruby/object:Gem::Requirement
93
23
  requirements:
94
- - - ">="
24
+ - - "~>"
95
25
  - !ruby/object:Gem::Version
96
- version: '0'
26
+ version: 1.16.a
97
27
  - !ruby/object:Gem::Dependency
98
28
  name: rake
99
29
  requirement: !ruby/object:Gem::Requirement
100
30
  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'
111
- - !ruby/object:Gem::Dependency
112
- name: guard
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: '0'
125
- - !ruby/object:Gem::Dependency
126
- name: guard-bundler
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- version: '0'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - ">="
137
- - !ruby/object:Gem::Version
138
- version: '0'
139
- - !ruby/object:Gem::Dependency
140
- name: guard-rspec
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - ">="
31
+ - - "~>"
144
32
  - !ruby/object:Gem::Version
145
- version: '0'
33
+ version: '10.0'
146
34
  type: :development
147
35
  prerelease: false
148
36
  version_requirements: !ruby/object:Gem::Requirement
149
37
  requirements:
150
- - - ">="
38
+ - - "~>"
151
39
  - !ruby/object:Gem::Version
152
- version: '0'
153
- description: Test
40
+ version: '10.0'
41
+ description: Lambda tool
154
42
  email:
155
43
  - tongueroo@gmail.com
156
- executables:
157
- - lam
44
+ executables: []
158
45
  extensions: []
159
46
  extra_rdoc_files: []
160
47
  files:
161
48
  - ".gitignore"
162
- - ".rspec"
163
- - ".ruby-version"
164
49
  - Gemfile
165
- - Gemfile.lock
166
- - Guardfile
167
- - LICENSE.txt
168
50
  - README.md
169
51
  - Rakefile
170
- - bin/lam
52
+ - bin/console
53
+ - bin/setup
171
54
  - lam.gemspec
172
55
  - lib/lam.rb
173
- - lib/lam/base_controller.rb
174
- - lib/lam/build.rb
175
- - lib/lam/build/handler_generator.rb
176
- - lib/lam/build/lambda_deducer.rb
177
- - lib/lam/build/templates/handler.js
178
- - lib/lam/build/traveling_ruby.rb
179
- - lib/lam/cli.rb
180
- - lib/lam/cli/help.rb
181
- - lib/lam/command.rb
182
- - lib/lam/process.rb
183
- - lib/lam/process/base_processor.rb
184
- - lib/lam/process/controller_processor.rb
185
- - lib/lam/process/help.rb
186
- - lib/lam/process/processor_deducer.rb
187
- - lib/lam/util.rb
188
56
  - lib/lam/version.rb
189
- - notes/design.md
190
- - notes/traveling-ruby-packaging-lam.md
191
- - notes/traveling-ruby-packaging.md
192
- - notes/traveling-ruby.md
193
- - spec/fixtures/project/.gitignore
194
- - spec/fixtures/project/.ruby-version
195
- - spec/fixtures/project/Gemfile
196
- - spec/fixtures/project/Gemfile.lock
197
- - spec/fixtures/project/app/controllers/application_controller.rb
198
- - spec/fixtures/project/app/controllers/posts_controller.rb
199
- - spec/fixtures/project/bin/lam
200
- - spec/fixtures/project/handlers/controllers/posts.js
201
- - spec/lib/cli_spec.rb
202
- - spec/lib/lam/base_controller_spec.rb
203
- - spec/lib/lam/build/lambda_deducer_spec.rb
204
- - spec/lib/lam/build_spec.rb
205
- - spec/lib/lam/process/controller_processor_spec.rb
206
- - spec/lib/lam/process/infer_spec.rb
207
- - spec/lib/lam/process_spec.rb
208
- - spec/spec_helper.rb
209
57
  homepage: https://github.com/tongueroo/lam
210
- licenses:
211
- - MIT
212
- metadata: {}
58
+ licenses: []
59
+ metadata:
60
+ allowed_push_host: https://rubygems.org
213
61
  post_install_message:
214
62
  rdoc_options: []
215
63
  require_paths:
@@ -226,24 +74,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
226
74
  version: '0'
227
75
  requirements: []
228
76
  rubyforge_project:
229
- rubygems_version: 2.4.5
77
+ rubygems_version: 2.6.11
230
78
  signing_key:
231
79
  specification_version: 4
232
- summary: Test
233
- test_files:
234
- - spec/fixtures/project/.gitignore
235
- - spec/fixtures/project/.ruby-version
236
- - spec/fixtures/project/Gemfile
237
- - spec/fixtures/project/Gemfile.lock
238
- - spec/fixtures/project/app/controllers/application_controller.rb
239
- - spec/fixtures/project/app/controllers/posts_controller.rb
240
- - spec/fixtures/project/bin/lam
241
- - spec/fixtures/project/handlers/controllers/posts.js
242
- - spec/lib/cli_spec.rb
243
- - spec/lib/lam/base_controller_spec.rb
244
- - spec/lib/lam/build/lambda_deducer_spec.rb
245
- - spec/lib/lam/build_spec.rb
246
- - spec/lib/lam/process/controller_processor_spec.rb
247
- - spec/lib/lam/process/infer_spec.rb
248
- - spec/lib/lam/process_spec.rb
249
- - spec/spec_helper.rb
80
+ summary: Lambda tool
81
+ test_files: []