sixarm_ruby_blob 1.0.1 → 1.0.3

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: b2498c0f1bc1c1f18d4608c27b90469e5b68218c
4
- data.tar.gz: 2db4616404f8bd1df0fa333a7dbfd2342549fd23
3
+ metadata.gz: a6a79a4ed33c1d85d2bc2a8100ab06b7206b51fa
4
+ data.tar.gz: 9f4443d39a6e3eaa7328368895ba3b50927ce09e
5
5
  SHA512:
6
- metadata.gz: 33161d97849da4819f3b996362ec2de113c3f7a60d6a1521d43470aa821c5435a5f69b6abbe261da07e91257b123097ff753d0aa86a16b888c7e426a4f3f5ad3
7
- data.tar.gz: 9dc6a2e226a9eb1a3d0f738cf8d95d0fb882ffb31f9a360be4d55aeadb4422a95973b30e7fc72cc14e5a7076e49560805fd90ee167b8ab52284e2d246782b8aa
6
+ metadata.gz: 20dde8799d2ee41bbbd9fee649f88ff5099015d39645c9360143abeecec319cbf0f3ae89ab1540a08f7c47036797eec1137d7869822e4fecbc4561fe878c0054
7
+ data.tar.gz: adda527abf28072d90eb351caf44359cd6b34f65e20b8c50cc93e858a71b99b2454c191a0fe88308841aaa17183f1fd93ad629256b88868c24756b86b48cace8
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/Rakefile CHANGED
@@ -1,8 +1,10 @@
1
1
  # -*- coding: utf-8 -*-
2
- require 'rake'
3
- require 'rake/testtask'
2
+ require "rake"
3
+ require "rake/testtask"
4
4
 
5
5
  Rake::TestTask.new(:test) do |t|
6
- t.libs << 'lib' << 'test'
7
- t.pattern = 'test/*.rb'
6
+ t.libs.push("lib", "test")
7
+ t.pattern = "test/**/*.rb"
8
8
  end
9
+
10
+ task :default => [:test]
@@ -3,7 +3,7 @@
3
3
  Please see README
4
4
  =end
5
5
 
6
- ['base','dir','file','export','upload','uri'].map{|x|
7
- require "sixarm_ruby_blob/#{x}.rb"
6
+ ["base","dir","file","export","upload","uri"].map{|x|
7
+ require_relative "sixarm_ruby_blob/#{x}"
8
8
  }
9
9
 
@@ -1,18 +1,19 @@
1
1
  # -*- coding: utf-8 -*-
2
- require 'minitest/autorun'
3
- require 'simplecov'
2
+ require "minitest/autorun"
3
+ require "coveralls"
4
+ require "simplecov"
5
+ Coveralls.wear!
6
+ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
7
+ SimpleCov::Formatter::HTMLFormatter,
8
+ Coveralls::SimpleCov::Formatter
9
+ ]
4
10
  SimpleCov.start
5
11
 
6
- require 'pathname'
7
- require 'sixarm_ruby_minitest_extensions'
8
- require 'sixarm_ruby_fab'
9
- require 'sixarm_ruby_blob'
10
- require 'securerandom'
11
- require 'uri'
12
+ require "pathname"
13
+ require "sixarm_ruby_minitest_extensions"
14
+ require "sixarm_ruby_fab"
15
+ require "securerandom"
16
+ require "uri"
17
+ require "sixarm_ruby_blob"
12
18
 
13
19
  FAB = Fab.new
14
-
15
- ['base','dir','file','export','upload','uri'].map{|x|
16
- require "sixarm_ruby_blob_test/#{x}_test.rb"
17
- }
18
-
@@ -1,7 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- require 'minitest/autorun'
3
- require 'simplecov'
4
- SimpleCov.start
2
+ require "sixarm_ruby_blob_test"
5
3
 
6
4
  describe Blob do
7
5
 
@@ -1,7 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- require 'minitest/autorun'
3
- require 'simplecov'
4
- SimpleCov.start
2
+ require "sixarm_ruby_blob_test"
5
3
 
6
4
  describe Blob do
7
5
 
@@ -1,7 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- require 'minitest/autorun'
3
- require 'simplecov'
4
- SimpleCov.start
2
+ require "sixarm_ruby_blob_test"
5
3
 
6
4
  describe Blob do
7
5
 
@@ -1,7 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- require 'minitest/autorun'
3
- require 'simplecov'
4
- SimpleCov.start
2
+ require "sixarm_ruby_blob_test"
5
3
 
6
4
  describe Blob do
7
5
 
@@ -1,7 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- require 'minitest/autorun'
3
- require 'simplecov'
4
- SimpleCov.start
2
+ require "sixarm_ruby_blob_test"
5
3
 
6
4
  describe Blob do
7
5
 
@@ -1,7 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- require 'minitest/autorun'
3
- require 'simplecov'
4
- SimpleCov.start
2
+ require "sixarm_ruby_blob_test"
5
3
 
6
4
  describe Blob do
7
5
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sixarm_ruby_blob
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - SixArm
@@ -10,25 +10,41 @@ bindir: bin
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIDBDCCAm2gAwIBAgIJAKPwEETU5bHoMA0GCSqGSIb3DQEBBQUAMGAxCzAJBgNV
13
+ MIIGCTCCA/GgAwIBAgIJAK3igyLv2hNNMA0GCSqGSIb3DQEBBQUAMGAxCzAJBgNV
14
14
  BAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNp
15
- c2NvMQ8wDQYDVQQKEwZTaXhBcm0xEzARBgNVBAMTCnNpeGFybS5jb20wHhcNMTAx
16
- MjEzMjMyNzEzWhcNMTMwOTA4MjMyNzEzWjBgMQswCQYDVQQGEwJVUzETMBEGA1UE
15
+ c2NvMQ8wDQYDVQQKEwZTaXhBcm0xEzARBgNVBAMTCnNpeGFybS5jb20wHhcNMTUw
16
+ MzE0MjA0MTE5WhcNMTcxMjA4MjA0MTE5WjBgMQswCQYDVQQGEwJVUzETMBEGA1UE
17
17
  CBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEPMA0GA1UEChMG
18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g4C5viEkPY0YdC0KMSqs5kIA2nCUiqpkwIOa36rVEwiKiU7OCfE3u3baDpL
39
+ FlfMBznZKOdxDFAmNaxvXBe2XeTzrZPvJtnNLWL6K4LaBHhq3bBdh1Hge0iMkpQ7
40
+ RTIGlfhlIFkMV3wT0LTsNznUPsoo6e+IW/tDrk23mrNRY6QynTETb+QVIevuzD9m
41
+ Drcxp/zlVhud+a0ezdnyNvF520arJWvqA4GrOo8F+TT2vVrjscgYjiVGdSq+8wQv
42
+ Efa5jhe8QwG7R1rdpMMP5yBSAqWuFBczMveX5j4rp9Ifw5/XsZbgwcmdm26bjhzh
43
+ w2grAHIhvR9mztm6uXQlZhv1fu3P+RWHDSYhnZSCJSCdxPzQJ1mG5T5ahiL3HvCZ
44
+ 2AC9FOGkybW6DJEFSFFMlNk0IILsa/gNp8ufGuTVLWF9FUUdMNK+TMbghnifT8/1
45
+ n+ES/gQPOnvmVkLDGw==
30
46
  -----END CERTIFICATE-----
31
- date: 2013-08-01 00:00:00.000000000 Z
47
+ date: 2015-07-19 00:00:00.000000000 Z
32
48
  dependencies:
33
49
  - !ruby/object:Gem::Dependency
34
50
  name: sixarm_minitest_extensions
@@ -58,32 +74,108 @@ dependencies:
58
74
  - - '='
59
75
  - !ruby/object:Gem::Version
60
76
  version: 1.0.0
77
+ - !ruby/object:Gem::Dependency
78
+ name: minitest
79
+ requirement: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: 5.7.0
84
+ - - "<"
85
+ - !ruby/object:Gem::Version
86
+ version: '6'
87
+ type: :development
88
+ prerelease: false
89
+ version_requirements: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ version: 5.7.0
94
+ - - "<"
95
+ - !ruby/object:Gem::Version
96
+ version: '6'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rake
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">"
102
+ - !ruby/object:Gem::Version
103
+ version: 10.4.2
104
+ - - "<"
105
+ - !ruby/object:Gem::Version
106
+ version: '11'
107
+ type: :development
108
+ prerelease: false
109
+ version_requirements: !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - - ">"
112
+ - !ruby/object:Gem::Version
113
+ version: 10.4.2
114
+ - - "<"
115
+ - !ruby/object:Gem::Version
116
+ version: '11'
117
+ - !ruby/object:Gem::Dependency
118
+ name: simplecov
119
+ requirement: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - ">="
122
+ - !ruby/object:Gem::Version
123
+ version: 0.10.0
124
+ - - "<"
125
+ - !ruby/object:Gem::Version
126
+ version: '2'
127
+ type: :development
128
+ prerelease: false
129
+ version_requirements: !ruby/object:Gem::Requirement
130
+ requirements:
131
+ - - ">="
132
+ - !ruby/object:Gem::Version
133
+ version: 0.10.0
134
+ - - "<"
135
+ - !ruby/object:Gem::Version
136
+ version: '2'
137
+ - !ruby/object:Gem::Dependency
138
+ name: coveralls
139
+ requirement: !ruby/object:Gem::Requirement
140
+ requirements:
141
+ - - ">="
142
+ - !ruby/object:Gem::Version
143
+ version: 0.8.2
144
+ - - "<"
145
+ - !ruby/object:Gem::Version
146
+ version: '2'
147
+ type: :development
148
+ prerelease: false
149
+ version_requirements: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - ">="
152
+ - !ruby/object:Gem::Version
153
+ version: 0.8.2
154
+ - - "<"
155
+ - !ruby/object:Gem::Version
156
+ version: '2'
61
157
  description: Keep track of data as a file, or URI, with basic upload etc.
62
158
  email: sixarm@sixarm.com
63
159
  executables: []
64
160
  extensions: []
65
161
  extra_rdoc_files: []
66
162
  files:
67
- - .gemtest
68
- - CONTRIBUTING.md
69
163
  - Rakefile
70
- - README.md
71
- - VERSION
72
164
  - lib/sixarm_ruby_blob.rb
73
165
  - lib/sixarm_ruby_blob/base.rb
74
166
  - lib/sixarm_ruby_blob/dir.rb
75
- - lib/sixarm_ruby_blob/file.rb
76
167
  - lib/sixarm_ruby_blob/export.rb
168
+ - lib/sixarm_ruby_blob/file.rb
77
169
  - lib/sixarm_ruby_blob/upload.rb
78
170
  - lib/sixarm_ruby_blob/uri.rb
79
171
  - test/sixarm_ruby_blob_test.rb
80
172
  - test/sixarm_ruby_blob_test/base_test.rb
81
173
  - test/sixarm_ruby_blob_test/dir_test.rb
82
- - test/sixarm_ruby_blob_test/file_test.rb
83
174
  - test/sixarm_ruby_blob_test/export_test.rb
175
+ - test/sixarm_ruby_blob_test/file_test.rb
176
+ - test/sixarm_ruby_blob_test/samples/upload_input.bin
84
177
  - test/sixarm_ruby_blob_test/upload_test.rb
85
178
  - test/sixarm_ruby_blob_test/uri_test.rb
86
- - test/sixarm_ruby_blob_test/samples/upload_input.bin
87
179
  homepage: http://sixarm.com/
88
180
  licenses:
89
181
  - BSD
@@ -98,17 +190,17 @@ require_paths:
98
190
  - lib
99
191
  required_ruby_version: !ruby/object:Gem::Requirement
100
192
  requirements:
101
- - - '>='
193
+ - - ">="
102
194
  - !ruby/object:Gem::Version
103
195
  version: '0'
104
196
  required_rubygems_version: !ruby/object:Gem::Requirement
105
197
  requirements:
106
- - - '>='
198
+ - - ">="
107
199
  - !ruby/object:Gem::Version
108
200
  version: '0'
109
201
  requirements: []
110
202
  rubyforge_project:
111
- rubygems_version: 2.0.3
203
+ rubygems_version: 2.4.8
112
204
  signing_key:
113
205
  specification_version: 4
114
206
  summary: SixArm.com » Ruby » Blob of data abstract base class
metadata.gz.sig CHANGED
Binary file
data/.gemtest DELETED
File without changes
data/CONTRIBUTING.md DELETED
@@ -1,28 +0,0 @@
1
- # Contributing
2
-
3
- Thank you for contributing!
4
-
5
- If you would like to contribute a donation, an easy way is to use PayPal to sixarm@sixarm.com.
6
-
7
- If you would like to contribute help, the next section is for you.
8
-
9
-
10
- ## Contributing to the source
11
-
12
- We love pull requests for improvments to the source code and documentation.
13
-
14
- There are three easy steps:
15
-
16
- 1. Fork the repo.
17
-
18
- * Before you do any work please run our existing tests to make sure the code runs cleanly.
19
-
20
- 2. Work as you like.
21
-
22
- * Please create tests. This helps us know that all your code runs cleanly.
23
-
24
- 3. Push to your fork and submit a pull request.
25
-
26
- * We'll take a look as soon as we can; this is typically within a business day.
27
-
28
- Thank you again!
data/README.md DELETED
@@ -1,97 +0,0 @@
1
- # SixArm.com » Ruby » <br> Blob of data abstract base class
2
-
3
- * Doc: <http://sixarm.com/sixarm_ruby_blob/doc>
4
- * Gem: <http://rubygems.org/gems/sixarm_ruby_blob>
5
- * Repo: <http://github.com/sixarm/sixarm_ruby_blob>
6
- * Email: Joel Parker Henderson, <joel@sixarm.com>
7
-
8
- ## Introduction
9
-
10
- This is an abstract base class to help us model a blob of data.
11
-
12
- We use this class as our parent class for image files, music files, and video files.
13
-
14
- A blob provides a few basic capabilities:
15
-
16
- * Access a blob via a file path on the local filesystem.
17
- * Access a blob via a URI.
18
- * Upload a blob by using a typical web browser form.
19
-
20
- For docs go to <http://sixarm.com/sixarm_ruby_blob/doc>
21
-
22
- Want to help? We're happy to get pull requests.
23
-
24
-
25
- ## Install quickstart
26
-
27
- Install:
28
-
29
- gem install sixarm_ruby_blob
30
-
31
- Bundler:
32
-
33
- gem "sixarm_ruby_blob", "~>1.0.0"
34
-
35
- Require:
36
-
37
- require "sixarm_ruby_blob"
38
-
39
-
40
- ## Install with security (optional)
41
-
42
- To enable high security for all our gems:
43
-
44
- wget http://sixarm.com/sixarm.pem
45
- gem cert --add sixarm.pem
46
- gem sources --add http://sixarm.com
47
-
48
- To install with high security:
49
-
50
- gem install sixarm_ruby_blob --test --trust-policy HighSecurity
51
-
52
-
53
- ## Examples
54
-
55
- Create a blob:
56
-
57
- require "sixarm_ruby_blob"
58
- blob = Blob.new(dir: "/my/photos", name: "photo.jpb")
59
-
60
- Locate the blob as a file and as a URI:
61
-
62
- blob.file_path #=> "/my/photos/photo.jpg"
63
- blob.uri_path #=> "http://example.com/my/photos/photo.jpg"
64
-
65
-
66
- ## Changes
67
-
68
- * 2013-07-30 1.0.0 Publish.
69
-
70
-
71
- ## License
72
-
73
- You may choose any of these open source licenses:
74
-
75
- * Apache License
76
- * BSD License
77
- * CreativeCommons License, Non-commercial Share Alike
78
- * GNU General Public License Version 2 (GPL 2)
79
- * GNU Lesser General Public License (LGPL)
80
- * MIT License
81
- * Perl Artistic License
82
- * Ruby License
83
-
84
- The software is provided "as is", without warranty of any kind,
85
- express or implied, including but not limited to the warranties of
86
- merchantability, fitness for a particular purpose and noninfringement.
87
-
88
- In no event shall the authors or copyright holders be liable for any
89
- claim, damages or other liability, whether in an action of contract,
90
- tort or otherwise, arising from, out of or in connection with the
91
- software or the use or other dealings in the software.
92
-
93
- This license is for the included software that is created by SixArm;
94
- some of the included software may have its own licenses, copyrights,
95
- authors, etc. and these do take precedence over the SixArm license.
96
-
97
- Copyright (c) 2005-2013 Joel Parker Henderson
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 1.0.1