qiniu_service 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 20c1eb17c953d87d4b049fe0e5844c6ec2c22922
4
- data.tar.gz: 8e8dea99bdb9b8ed9cd0d1b4bf9de779188007af
3
+ metadata.gz: e51193a6aca8ea21014520a793944a498d368703
4
+ data.tar.gz: fcea31bb30c42e8dcf485db0557a35618c7dd3cf
5
5
  SHA512:
6
- metadata.gz: 8f1f6e0213b43f9ff2e5b7e74680f50c242ca0537f0b08dfd6ee953f8328ecfa46efe327a203a2e0909c5748b59ed56f19e839722b9175909eb043043ce9e914
7
- data.tar.gz: 94c6061d41dc4e16ef6242f4865c69441f86b23c4f7a9eb0685ff1bd56e42ccf55b808039024d818f0fe209ac5f940453bc9399ca989bb50bb37b90ad71f29da
6
+ metadata.gz: 2c6dd9df5b004ec628d684ed3b4c1a42014f5bad92ec09300ed98e52f3d32e7fb2445df4313a18e6966c88aefbfe699fef2691b61fbf8f938d476c35ed233560
7
+ data.tar.gz: 211fbbf8fdacfb2ebb2c00df11f8cea947d20d71a74ddb17dd91d6f2c1138b455ba933125863e77f40a24204ee8e0a7fbd50e9dbf552c97e0f98938956637b30
@@ -0,0 +1,13 @@
1
+ module QiniuService
2
+ module Generators
3
+ class InstallGenerator < Rails::Generators::Base
4
+ source_root File.expand_path("../../templates", __FILE__)
5
+
6
+ def copy_initializer
7
+ template "qiniu_service.yml.example", "config/qiniu_service.yml.example"
8
+ template "qiniu_service.rb", "config/initializers/qiniu_service.rb"
9
+ end
10
+
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,3 @@
1
+ QiniuService.configure do |config|
2
+ config.root = Rails.root
3
+ end
@@ -0,0 +1,10 @@
1
+ host: 'http://host.com'
2
+ access:
3
+ access_key: 'qiniu access key'
4
+ secret_key: 'qiniu secret key'
5
+
6
+ buckets:
7
+ bucket_name1:
8
+ domain: '< the bucket domain >'
9
+ bucket_name2:
10
+ domain: '< the bucket domain >'
@@ -0,0 +1,5 @@
1
+ require 'active_support/configurable'
2
+
3
+ module QiniuService
4
+ include ActiveSupport::Configurable
5
+ end
@@ -1,3 +1,3 @@
1
1
  module QiniuService
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qiniu_service
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - issue
@@ -51,8 +51,13 @@ files:
51
51
  - Rakefile
52
52
  - bin/console
53
53
  - bin/setup
54
+ - lib/generators/qiniu_service/install_generator.rb
55
+ - lib/generators/templates/qiniu_service.rb
56
+ - lib/generators/templates/qiniu_service.yml.example
54
57
  - lib/qiniu_service.rb
58
+ - lib/qiniu_service/configurable.rb
55
59
  - lib/qiniu_service/version.rb
60
+ - qiniu_service-0.1.0.gem
56
61
  - qiniu_service.gemspec
57
62
  homepage: ''
58
63
  licenses: []