sixarm_ruby_blob 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: a2fbb759d31bb2f54e52e52edd9db4a43f833ebc
4
+ data.tar.gz: 3e6d068636b9f1dc652ef6284e7295e31600809e
5
+ SHA512:
6
+ metadata.gz: cf0a87ce08854d34b0e9ff3fa6e43c9d4f9d54d8ec5f0204f56b525e8dc8c680b3b7f3e310b2db84dc24724e2804f064831d2bff2c3e4047de8ffb7a787e52d2
7
+ data.tar.gz: e086df08b5fbbe61526a802d04447fb6cfaf3a19d2c32c1133b7bb5d8361e09fc7a01ac2b5eb7e5160d4a7269d9b1f700e54b3311414f16fec155cd2e3d57937
checksums.yaml.gz.sig ADDED
@@ -0,0 +1,2 @@
1
+
2
+ b@���^��&Y{=��56�<������)�Pl�T�D�8?\�FW�I�ۑd�^ޓ1� ��H$4E���� �.�$Ws+B�"�:"��ި�[�E%�[VG%�yPF~�Ɵ����=Կ��䬎9�#S
data.tar.gz.sig ADDED
@@ -0,0 +1 @@
1
+ X�i��Y,S B��Av�H$t�L�9���'+f��;b��-���V.V� �r�
data/.gemtest ADDED
File without changes
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,28 @@
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 ADDED
@@ -0,0 +1,97 @@
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/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ # -*- coding: utf-8 -*-
2
+ require 'rake'
3
+ require 'rake/testtask'
4
+
5
+ Rake::TestTask.new(:test) do |t|
6
+ t.libs << 'lib' << 'test'
7
+ t.pattern = 'test/*.rb'
8
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.0.0
@@ -0,0 +1,9 @@
1
+ # -*- coding: utf-8 -*-
2
+ =begin rdoc
3
+ Please see README
4
+ =end
5
+
6
+ ['base','dir','file','export','upload','uri'].map{|x|
7
+ require "sixarm_ruby_blob/#{x}.rb"
8
+ }
9
+
@@ -0,0 +1,20 @@
1
+ # -*- coding: utf-8 -*-
2
+ require 'minitest/autorun'
3
+ require 'simplecov'
4
+ SimpleCov.start
5
+
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
+
13
+
14
+
15
+ FAB = Fab.new
16
+
17
+ ['base','dir','file','export','upload','uri'].map{|x|
18
+ require "sixarm_ruby_blob_test/#{x}_test.rb"
19
+ }
20
+
metadata ADDED
@@ -0,0 +1,104 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sixarm_ruby_blob
3
+ version: !ruby/object:Gem::Version
4
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uTrZbSQe
27
+ jVB+ExRwWadGwaNPUA56d39qwavwP+iu+3JpeonNMVvbWXF5naCX/dNFIeREHzER
28
+ ZDRQYMqru9TEMna6HD9zpcstF7vwThGovlOQ+3Y6plQ4nMzipXcZ9THqs65PIL0q
29
+ eabwpCbAopo=
30
+ -----END CERTIFICATE-----
31
+ date: 2013-08-01 00:00:00.000000000 Z
32
+ dependencies:
33
+ - !ruby/object:Gem::Dependency
34
+ name: sixarm_minitest_extensions
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - '='
38
+ - !ruby/object:Gem::Version
39
+ version: 1.0.5
40
+ type: :development
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - '='
45
+ - !ruby/object:Gem::Version
46
+ version: 1.0.5
47
+ - !ruby/object:Gem::Dependency
48
+ name: sixarm_ruby_fab
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - '='
52
+ - !ruby/object:Gem::Version
53
+ version: 1.0.0
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - '='
59
+ - !ruby/object:Gem::Version
60
+ version: 1.0.0
61
+ description: Keep track of data as a file, or URI, with basic upload etc.
62
+ email: sixarm@sixarm.com
63
+ executables: []
64
+ extensions: []
65
+ extra_rdoc_files: []
66
+ files:
67
+ - .gemtest
68
+ - CONTRIBUTING.md
69
+ - Rakefile
70
+ - README.md
71
+ - VERSION
72
+ - lib/sixarm_ruby_blob.rb
73
+ - test/sixarm_ruby_blob_test.rb
74
+ homepage: http://sixarm.com/
75
+ licenses:
76
+ - BSD
77
+ - GPL
78
+ - MIT
79
+ - PAL
80
+ - Various
81
+ metadata: {}
82
+ post_install_message:
83
+ rdoc_options: []
84
+ require_paths:
85
+ - lib
86
+ required_ruby_version: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - '>='
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ required_rubygems_version: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - '>='
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ requirements: []
97
+ rubyforge_project:
98
+ rubygems_version: 2.0.3
99
+ signing_key:
100
+ specification_version: 4
101
+ summary: SixArm.com » Ruby » Blob of data abstract base class
102
+ test_files:
103
+ - test/sixarm_ruby_blob_test.rb
104
+ has_rdoc: true
metadata.gz.sig ADDED
Binary file