snatch_price 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 (60) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +9 -0
  3. data/CODE_OF_CONDUCT.md +49 -0
  4. data/Gemfile +4 -0
  5. data/LICENSE.txt +21 -0
  6. data/README.md +41 -0
  7. data/Rakefile +2 -37
  8. data/bin/console +14 -0
  9. data/bin/setup +8 -0
  10. data/lib/snatch_price.rb +2 -1
  11. data/lib/snatch_price/version.rb +1 -1
  12. data/snatch_price.gemspec +32 -0
  13. metadata +32 -94
  14. data/MIT-LICENSE +0 -20
  15. data/README.rdoc +0 -3
  16. data/app/assets/javascripts/snatch_price/application.js +0 -13
  17. data/app/assets/stylesheets/snatch_price/application.css +0 -15
  18. data/app/controllers/snatch_price/application_controller.rb +0 -5
  19. data/app/helpers/snatch_price/application_helper.rb +0 -4
  20. data/app/views/layouts/snatch_price/application.html.erb +0 -14
  21. data/config/routes.rb +0 -2
  22. data/lib/snatch_price/engine.rb +0 -5
  23. data/lib/tasks/snatch_price_tasks.rake +0 -4
  24. data/test/dummy/README.rdoc +0 -28
  25. data/test/dummy/Rakefile +0 -6
  26. data/test/dummy/app/assets/javascripts/application.js +0 -13
  27. data/test/dummy/app/assets/stylesheets/application.css +0 -15
  28. data/test/dummy/app/controllers/application_controller.rb +0 -5
  29. data/test/dummy/app/helpers/application_helper.rb +0 -2
  30. data/test/dummy/app/views/layouts/application.html.erb +0 -14
  31. data/test/dummy/bin/bundle +0 -3
  32. data/test/dummy/bin/rails +0 -4
  33. data/test/dummy/bin/rake +0 -4
  34. data/test/dummy/bin/setup +0 -29
  35. data/test/dummy/config.ru +0 -4
  36. data/test/dummy/config/application.rb +0 -26
  37. data/test/dummy/config/boot.rb +0 -5
  38. data/test/dummy/config/database.yml +0 -25
  39. data/test/dummy/config/environment.rb +0 -5
  40. data/test/dummy/config/environments/development.rb +0 -41
  41. data/test/dummy/config/environments/production.rb +0 -79
  42. data/test/dummy/config/environments/test.rb +0 -42
  43. data/test/dummy/config/initializers/assets.rb +0 -11
  44. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  45. data/test/dummy/config/initializers/cookies_serializer.rb +0 -3
  46. data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  47. data/test/dummy/config/initializers/inflections.rb +0 -16
  48. data/test/dummy/config/initializers/mime_types.rb +0 -4
  49. data/test/dummy/config/initializers/session_store.rb +0 -3
  50. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  51. data/test/dummy/config/locales/en.yml +0 -23
  52. data/test/dummy/config/routes.rb +0 -4
  53. data/test/dummy/config/secrets.yml +0 -22
  54. data/test/dummy/public/404.html +0 -67
  55. data/test/dummy/public/422.html +0 -67
  56. data/test/dummy/public/500.html +0 -66
  57. data/test/dummy/public/favicon.ico +0 -0
  58. data/test/integration/navigation_test.rb +0 -8
  59. data/test/snatch_price_test.rb +0 -7
  60. data/test/test_helper.rb +0 -21
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1fd43e73350fcf806a46d0b9f1b96d55323bca34
4
- data.tar.gz: 037df3ce1b6a06e837b64a7c6d9710d869e9a85e
3
+ metadata.gz: 4da5b439b939dafaef0e5f44f400cd12c685aedc
4
+ data.tar.gz: 40e3658105ac9fffca9894f34eb30abcfdecb883
5
5
  SHA512:
6
- metadata.gz: 130d6c78b42b7d657dc418819935e93ca59811d3fa7cfdac349e78d854fba3988c4950a6835a3c282d5b8872a1f2ec5c1d4c98ca10ebe2bb32ec0e07f238d8af
7
- data.tar.gz: 23d81a53553e6541adb20ae137300128a85550cc8c58e3c493d7628f4a9289136196bdf76ffc8fc25d52424bee4f5d5679028132139cd4603ea448b5e0eed062
6
+ metadata.gz: 5c77db1b28c28b6f0a3c8f5f1a221acac11c334fc4073648e2f7b80b7e9f2d842b65b8280ce197894fb2c60e04822c3a9b8b04bb7391a26cf63a0be4a7589090
7
+ data.tar.gz: 18efa89038b4b22a9ffe8b6bdd88e6fab66b11bdc4440eac11e3a2219dafafe94e5615541788098a921cb01bddafa45e5b086a1fcf0a43108bf441e0ba0f5906
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
@@ -0,0 +1,49 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, and in the interest of
4
+ fostering an open and welcoming community, we pledge to respect all people who
5
+ contribute through reporting issues, posting feature requests, updating
6
+ documentation, submitting pull requests or patches, and other activities.
7
+
8
+ We are committed to making participation in this project a harassment-free
9
+ experience for everyone, regardless of level of experience, gender, gender
10
+ identity and expression, sexual orientation, disability, personal appearance,
11
+ body size, race, ethnicity, age, religion, or nationality.
12
+
13
+ Examples of unacceptable behavior by participants include:
14
+
15
+ * The use of sexualized language or imagery
16
+ * Personal attacks
17
+ * Trolling or insulting/derogatory comments
18
+ * Public or private harassment
19
+ * Publishing other's private information, such as physical or electronic
20
+ addresses, without explicit permission
21
+ * Other unethical or unprofessional conduct
22
+
23
+ Project maintainers have the right and responsibility to remove, edit, or
24
+ reject comments, commits, code, wiki edits, issues, and other contributions
25
+ that are not aligned to this Code of Conduct, or to ban temporarily or
26
+ permanently any contributor for other behaviors that they deem inappropriate,
27
+ threatening, offensive, or harmful.
28
+
29
+ By adopting this Code of Conduct, project maintainers commit themselves to
30
+ fairly and consistently applying these principles to every aspect of managing
31
+ this project. Project maintainers who do not follow or enforce the Code of
32
+ Conduct may be permanently removed from the project team.
33
+
34
+ This code of conduct applies both within project spaces and in public spaces
35
+ when an individual is representing the project or its community.
36
+
37
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
38
+ reported by contacting a project maintainer at tianlitao3399@gmail.com. All
39
+ complaints will be reviewed and investigated and will result in a response that
40
+ is deemed necessary and appropriate to the circumstances. Maintainers are
41
+ obligated to maintain confidentiality with regard to the reporter of an
42
+ incident.
43
+
44
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
45
+ version 1.3.0, available at
46
+ [http://contributor-covenant.org/version/1/3/0/][version]
47
+
48
+ [homepage]: http://contributor-covenant.org
49
+ [version]: http://contributor-covenant.org/version/1/3/0/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in snatch_price.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 tianlitao
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,41 @@
1
+ # SnatchPrice
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/snatch_price`. 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 'snatch_price'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install snatch_price
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).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/snatch_price. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
+
37
+
38
+ ## License
39
+
40
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
41
+
data/Rakefile CHANGED
@@ -1,37 +1,2 @@
1
- begin
2
- require 'bundler/setup'
3
- rescue LoadError
4
- puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
- end
6
-
7
- require 'rdoc/task'
8
-
9
- RDoc::Task.new(:rdoc) do |rdoc|
10
- rdoc.rdoc_dir = 'rdoc'
11
- rdoc.title = 'SnatchPrice'
12
- rdoc.options << '--line-numbers'
13
- rdoc.rdoc_files.include('README.rdoc')
14
- rdoc.rdoc_files.include('lib/**/*.rb')
15
- end
16
-
17
- APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
18
- load 'rails/tasks/engine.rake'
19
-
20
-
21
- load 'rails/tasks/statistics.rake'
22
-
23
-
24
-
25
- Bundler::GemHelper.install_tasks
26
-
27
- require 'rake/testtask'
28
-
29
- Rake::TestTask.new(:test) do |t|
30
- t.libs << 'lib'
31
- t.libs << 'test'
32
- t.pattern = 'test/**/*_test.rb'
33
- t.verbose = false
34
- end
35
-
36
-
37
- task default: :test
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "snatch_price"
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
data/bin/setup ADDED
@@ -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
data/lib/snatch_price.rb CHANGED
@@ -1,4 +1,5 @@
1
- require "snatch_price/engine"
1
+ require "snatch_price/version"
2
2
 
3
3
  module SnatchPrice
4
+ # Your code goes here...
4
5
  end
@@ -1,3 +1,3 @@
1
1
  module SnatchPrice
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -0,0 +1,32 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'snatch_price/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "snatch_price"
8
+ spec.version = SnatchPrice::VERSION
9
+ spec.authors = ["tianlitao"]
10
+ spec.email = ["tianlitao3399@gmail.com"]
11
+
12
+ spec.summary = %q{snatch emall price.}
13
+ spec.description = %q{snatch emall price.}
14
+ spec.homepage = "http://tianlitao.github.io/"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
18
+ # delete this section to allow pushing this gem to any host.
19
+ # if spec.respond_to?(:metadata)
20
+ # spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
21
+ # else
22
+ # raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
23
+ # end
24
+
25
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
26
+ spec.bindir = "exe"
27
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
+ spec.require_paths = ["lib"]
29
+
30
+ spec.add_development_dependency "bundler", "~> 1.11"
31
+ spec.add_development_dependency "rake", "~> 10.0"
32
+ end
metadata CHANGED
@@ -1,87 +1,62 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snatch_price
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
  - tianlitao
8
8
  autorequire:
9
- bindir: bin
9
+ bindir: exe
10
10
  cert_chain: []
11
11
  date: 2016-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rails
14
+ name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 4.2.6
20
- type: :runtime
19
+ version: '1.11'
20
+ type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 4.2.6
27
- description: snatch emall price
26
+ version: '1.11'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ description: snatch emall price.
28
42
  email:
29
43
  - tianlitao3399@gmail.com
30
44
  executables: []
31
45
  extensions: []
32
46
  extra_rdoc_files: []
33
47
  files:
34
- - MIT-LICENSE
35
- - README.rdoc
48
+ - ".gitignore"
49
+ - CODE_OF_CONDUCT.md
50
+ - Gemfile
51
+ - LICENSE.txt
52
+ - README.md
36
53
  - Rakefile
37
- - app/assets/javascripts/snatch_price/application.js
38
- - app/assets/stylesheets/snatch_price/application.css
39
- - app/controllers/snatch_price/application_controller.rb
40
- - app/helpers/snatch_price/application_helper.rb
41
- - app/views/layouts/snatch_price/application.html.erb
42
- - config/routes.rb
54
+ - bin/console
55
+ - bin/setup
43
56
  - lib/snatch_price.rb
44
- - lib/snatch_price/engine.rb
45
57
  - lib/snatch_price/version.rb
46
- - lib/tasks/snatch_price_tasks.rake
47
- - test/dummy/README.rdoc
48
- - test/dummy/Rakefile
49
- - test/dummy/app/assets/javascripts/application.js
50
- - test/dummy/app/assets/stylesheets/application.css
51
- - test/dummy/app/controllers/application_controller.rb
52
- - test/dummy/app/helpers/application_helper.rb
53
- - test/dummy/app/views/layouts/application.html.erb
54
- - test/dummy/bin/bundle
55
- - test/dummy/bin/rails
56
- - test/dummy/bin/rake
57
- - test/dummy/bin/setup
58
- - test/dummy/config.ru
59
- - test/dummy/config/application.rb
60
- - test/dummy/config/boot.rb
61
- - test/dummy/config/database.yml
62
- - test/dummy/config/environment.rb
63
- - test/dummy/config/environments/development.rb
64
- - test/dummy/config/environments/production.rb
65
- - test/dummy/config/environments/test.rb
66
- - test/dummy/config/initializers/assets.rb
67
- - test/dummy/config/initializers/backtrace_silencers.rb
68
- - test/dummy/config/initializers/cookies_serializer.rb
69
- - test/dummy/config/initializers/filter_parameter_logging.rb
70
- - test/dummy/config/initializers/inflections.rb
71
- - test/dummy/config/initializers/mime_types.rb
72
- - test/dummy/config/initializers/session_store.rb
73
- - test/dummy/config/initializers/wrap_parameters.rb
74
- - test/dummy/config/locales/en.yml
75
- - test/dummy/config/routes.rb
76
- - test/dummy/config/secrets.yml
77
- - test/dummy/public/404.html
78
- - test/dummy/public/422.html
79
- - test/dummy/public/500.html
80
- - test/dummy/public/favicon.ico
81
- - test/integration/navigation_test.rb
82
- - test/snatch_price_test.rb
83
- - test/test_helper.rb
84
- homepage: http://tianlitao.github.io
58
+ - snatch_price.gemspec
59
+ homepage: http://tianlitao.github.io/
85
60
  licenses:
86
61
  - MIT
87
62
  metadata: {}
@@ -104,42 +79,5 @@ rubyforge_project:
104
79
  rubygems_version: 2.5.1
105
80
  signing_key:
106
81
  specification_version: 4
107
- summary: snatch emall price
108
- test_files:
109
- - test/dummy/app/assets/javascripts/application.js
110
- - test/dummy/app/assets/stylesheets/application.css
111
- - test/dummy/app/controllers/application_controller.rb
112
- - test/dummy/app/helpers/application_helper.rb
113
- - test/dummy/app/views/layouts/application.html.erb
114
- - test/dummy/bin/bundle
115
- - test/dummy/bin/rails
116
- - test/dummy/bin/rake
117
- - test/dummy/bin/setup
118
- - test/dummy/config/application.rb
119
- - test/dummy/config/boot.rb
120
- - test/dummy/config/database.yml
121
- - test/dummy/config/environment.rb
122
- - test/dummy/config/environments/development.rb
123
- - test/dummy/config/environments/production.rb
124
- - test/dummy/config/environments/test.rb
125
- - test/dummy/config/initializers/assets.rb
126
- - test/dummy/config/initializers/backtrace_silencers.rb
127
- - test/dummy/config/initializers/cookies_serializer.rb
128
- - test/dummy/config/initializers/filter_parameter_logging.rb
129
- - test/dummy/config/initializers/inflections.rb
130
- - test/dummy/config/initializers/mime_types.rb
131
- - test/dummy/config/initializers/session_store.rb
132
- - test/dummy/config/initializers/wrap_parameters.rb
133
- - test/dummy/config/locales/en.yml
134
- - test/dummy/config/routes.rb
135
- - test/dummy/config/secrets.yml
136
- - test/dummy/config.ru
137
- - test/dummy/public/404.html
138
- - test/dummy/public/422.html
139
- - test/dummy/public/500.html
140
- - test/dummy/public/favicon.ico
141
- - test/dummy/Rakefile
142
- - test/dummy/README.rdoc
143
- - test/integration/navigation_test.rb
144
- - test/snatch_price_test.rb
145
- - test/test_helper.rb
82
+ summary: snatch emall price.
83
+ test_files: []
data/MIT-LICENSE DELETED
@@ -1,20 +0,0 @@
1
- Copyright 2016 tianlitao
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc DELETED
@@ -1,3 +0,0 @@
1
- = SnatchPrice
2
-
3
- This project rocks and uses MIT-LICENSE.