balloon 1.0.3 → 1.0.4

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
  SHA256:
3
- metadata.gz: 484f47f52881d0416b591ade66e361ad5c04d745b13c49e8e4715b417a912e92
4
- data.tar.gz: 6fdc98cc0a8ab9f8788654b95127470617d0188f22c74e9257b77c2567d5feff
3
+ metadata.gz: 4f3a8e6d749f97fb1346c381e9a2b241329040293ca3434f4110a7ebd6cf8da5
4
+ data.tar.gz: 042a59b6c61e6ca9bd2fee71b8482e9b2cfdf36de5f5280f22667ae89a821d7b
5
5
  SHA512:
6
- metadata.gz: 5ffd6489b6c336d601219c3d11948440bc8f3c4b829c996af90a6f34590444a7b85b7bc120d1ea06318b8d487f4d5d99ff44e32d9c1210c33d1607c618ee9ca7
7
- data.tar.gz: ab7933c8a10252c0348dec8610d8fa707fe8d09468f844535fbcccdfaeb56c14860e3a1fe7d038db1497039aff9213632527625e933189fec330342f0f43fa8d
6
+ metadata.gz: fc8f0ce282e7679621d14c9e8ed77cffc334052ad2bcce0de75587b35c546936744492cdf5ca703afc258a450f264ea185fa0acf7bccccc62737ba5628a15b00
7
+ data.tar.gz: 6155240c457ae548c86d0361d1a80a70a0ab2c28032c86a15f328a1ee5f201a0430960325da287655b0a8e9a7a834beb48a53662eb423a2ceb46ed38b2fb4ca9
data/.rubocop.yml ADDED
@@ -0,0 +1,4 @@
1
+ AllCops:
2
+ NewCops: enable
3
+ SuggestExtensions: false
4
+
data/balloon.gemspec CHANGED
@@ -1,42 +1,39 @@
1
- # -*- encoding: utf-8 -*-
2
- $:.push File.expand_path("../lib", __FILE__)
3
- require "balloon/version"
1
+ $LOAD_PATH.push File.expand_path('lib', __dir__)
2
+ require 'balloon/version'
4
3
 
5
4
  Gem::Specification.new do |spec|
6
- spec.name = "balloon"
5
+ spec.name = 'balloon'
7
6
  spec.version = Balloon::VERSION
8
- spec.authors = ["yeeli"]
9
- spec.email = ["yeeli@outlook.com"]
7
+ spec.authors = ['yeeli']
8
+ spec.email = ['yeeli@outlook.com']
10
9
 
11
- spec.homepage = "https://github.com/yeeli/balloon"
12
- spec.summary = %q{Ruby image upload libary}
13
- spec.description = %q{Ruby image upload libary}
10
+ spec.homepage = 'https://github.com/yeeli/balloon'
11
+ spec.summary = 'Ruby image upload libary'
12
+ spec.description = 'Ruby image upload libary'
14
13
 
15
- spec.metadata["homepage_uri"] = spec.homepage
16
- spec.metadata["source_code_uri"] = spec.homepage
17
- spec.metadata["changelog_uri"] = spec.homepage
14
+ spec.metadata['homepage_uri'] = spec.homepage
15
+ spec.metadata['source_code_uri'] = spec.homepage
16
+ spec.metadata['changelog_uri'] = spec.homepage
18
17
 
19
-
20
- spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
18
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
21
19
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
22
20
  end
23
- spec.bindir = "exe"
21
+ spec.bindir = 'exe'
24
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
25
- spec.require_paths = ["lib"]
26
-
23
+ spec.require_paths = ['lib']
27
24
 
28
- spec.add_dependency "activesupport"
29
- spec.add_dependency "mini_magick"
30
- spec.add_dependency "faraday"
31
- spec.add_dependency "mime-types"
25
+ spec.add_dependency 'activesupport'
26
+ spec.add_dependency 'faraday'
27
+ spec.add_dependency 'mime-types'
28
+ spec.add_dependency 'mini_magick'
32
29
 
33
30
  # Development dependency
34
31
 
35
- spec.add_development_dependency "rails"
36
- spec.add_development_dependency "rspec"
37
- spec.add_development_dependency "mysql2"
38
- spec.add_development_dependency "mongo_mapper"
39
- spec.add_development_dependency "mongoid"
40
- spec.add_development_dependency "bson_ext"
41
- spec.add_development_dependency "activerecord"
32
+ spec.add_development_dependency 'activerecord'
33
+ spec.add_development_dependency 'bson_ext'
34
+ spec.add_development_dependency 'mongoid'
35
+ spec.add_development_dependency 'mongo_mapper'
36
+ spec.add_development_dependency 'mysql2'
37
+ spec.add_development_dependency 'rails'
38
+ spec.add_development_dependency 'rspec'
42
39
  end
data/lib/balloon/load.rb CHANGED
@@ -8,7 +8,8 @@ if defined?(Rails)
8
8
  initializer "Baloon.configure_rails_initializeation" do
9
9
  config_file = Rails.root.join('config/balloon.yml')
10
10
  if config_file.file?
11
- config = YAML.load(ERB.new(config_file.read).result)
11
+ config_result = config_file.read
12
+ config = Psych.load_stream(ERB.new(config_result).result)[0]
12
13
  Balloon.configure_load(config, Rails.env)
13
14
  end
14
15
  end
@@ -25,7 +26,8 @@ elsif defined?(Sinatra)
25
26
  Balloon.root = root
26
27
  config_file = File.join(root, 'config/balloon.yml')
27
28
  if File.exist?(config_file)
28
- config = YAML.load(ERB.new(File.read(config_file)).result)
29
+ config_result = File.read(config_file)
30
+ config = Psych.load_stream(ERB.new(config_result).result)[0]
29
31
  Balloon.configure_load(config, env)
30
32
  end
31
33
  end
@@ -1,3 +1,3 @@
1
1
  module Balloon
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
data/lib/balloon.rb CHANGED
@@ -1,13 +1,13 @@
1
- #coding:utf-8
2
- require "balloon/version"
1
+ require 'balloon/version'
3
2
  require 'active_support'
4
3
  require 'active_support/core_ext'
5
4
 
5
+ # Balloon
6
6
  module Balloon
7
7
  class << self
8
8
  attr_accessor :root
9
9
  def configure(&block)
10
- Balloon::Base.configure &block
10
+ Balloon::Base.configure &block
11
11
  end
12
12
 
13
13
  def configure_load(config, env)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: balloon
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - yeeli
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-02-23 00:00:00.000000000 Z
11
+ date: 2022-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -25,7 +25,7 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: mini_magick
28
+ name: faraday
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
@@ -39,7 +39,7 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: faraday
42
+ name: mime-types
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
@@ -53,7 +53,7 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: mime-types
56
+ name: mini_magick
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
@@ -67,7 +67,7 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: rails
70
+ name: activerecord
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
@@ -81,7 +81,7 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: rspec
84
+ name: bson_ext
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">="
@@ -95,7 +95,7 @@ dependencies:
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: mysql2
98
+ name: mongoid
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - ">="
@@ -123,7 +123,7 @@ dependencies:
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
- name: mongoid
126
+ name: mysql2
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - ">="
@@ -137,7 +137,7 @@ dependencies:
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
- name: bson_ext
140
+ name: rails
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - ">="
@@ -151,7 +151,7 @@ dependencies:
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  - !ruby/object:Gem::Dependency
154
- name: activerecord
154
+ name: rspec
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - ">="
@@ -173,6 +173,7 @@ extra_rdoc_files: []
173
173
  files:
174
174
  - ".gitignore"
175
175
  - ".rspec"
176
+ - ".rubocop.yml"
176
177
  - Gemfile
177
178
  - README.md
178
179
  - README_EN.md
@@ -220,7 +221,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
220
221
  - !ruby/object:Gem::Version
221
222
  version: '0'
222
223
  requirements: []
223
- rubygems_version: 3.2.3
224
+ rubygems_version: 3.3.3
224
225
  signing_key:
225
226
  specification_version: 4
226
227
  summary: Ruby image upload libary