rrod 0.0.1

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: 483487fdba1ca64ce64a80010c2c9381ae9e471a
4
+ data.tar.gz: b6be998e8cbbcd06e65ed0b89b7114465d00727c
5
+ SHA512:
6
+ metadata.gz: f2a3a7e0d98d410a876392c8121f9b5a3ec5537b2a6a265ed159ebb88a438275f22b44296f5ec6c076b309683672641568461baf6ca07ff44a6de3adae3cb6b7
7
+ data.tar.gz: c29f1826f9aaf76b048cbe286e2c3434c48f38b955f6ae3030735a7b2422c06d178a1145547be4f62cce952940c4efd8b4acfdc8a59d36ce08e3021557bfad92
data/.gitignore ADDED
@@ -0,0 +1,19 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .ruby-gemset
6
+ .ruby-version
7
+ .yardoc
8
+ Gemfile.lock
9
+ InstalledFiles
10
+ _yardoc
11
+ coverage
12
+ doc/
13
+ lib/bundler/man
14
+ pkg
15
+ rdoc
16
+ spec/reports
17
+ test/tmp
18
+ test/version_tmp
19
+ tmp
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --format progress
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in rrod.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Adam Hunter
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,40 @@
1
+ # Rrod
2
+ ### Riak ruby object database.
3
+ Rrod lets you use the super awesome database, riak, to model and persist your
4
+ ruby objects.
5
+
6
+ # Riak
7
+ First, you must make sure you have Riak installed. See:
8
+ http://docs.basho.com/riak/latest/quickstart/#Install-Riak.
9
+ These guys have extremely good docs
10
+ and will usually answer your questions in IRC #riak.
11
+
12
+ ## Installation
13
+ Add `rrod` to your Gemfile and run `bundle` or execute `gem install rrod`.
14
+
15
+ # Usage
16
+ Once you have riak and rrod installed, make sure you know the port of one of your
17
+ riak nodes. Usually `8098`.
18
+
19
+ In terminal, run:
20
+
21
+ $ rrod irb
22
+
23
+ This will set you up with an irb environment with rrod loaded. Then run the
24
+ following commands.
25
+
26
+ ```ruby
27
+ Car = Class.new(Rrod::Document)
28
+ car = {wheels: 4, color: :black, make: 'Jeep'}
29
+ Car.persist(car)
30
+ @car = Car.first
31
+ @car.color
32
+ ```
33
+
34
+ ## Contributing
35
+
36
+ 1. Fork it
37
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
38
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
39
+ 4. Push to the branch (`git push origin my-new-feature`)
40
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
data/bin/rrod ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ $:.unshift File.expand_path('../../lib', __FILE__)
4
+ require 'rrod/cli'
5
+ Rrod::Cli.start
data/lib/rrod.rb ADDED
@@ -0,0 +1,2 @@
1
+ # Your rod and Your staff - they comfort me.
2
+ require "rrod/all"
data/lib/rrod/all.rb ADDED
@@ -0,0 +1 @@
1
+ require 'rrod/version'
data/lib/rrod/cli.rb ADDED
@@ -0,0 +1,16 @@
1
+ require 'thor'
2
+
3
+ module Rrod
4
+ class Cli < Thor
5
+ package_name "Rrod"
6
+
7
+ map "-i" => :pry
8
+
9
+ desc "pry", "start an interactive ruby session with Rrod loaded"
10
+ def pry
11
+ require 'pry'
12
+ require 'rrod'
13
+ Class.new { pry }
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,3 @@
1
+ module Rrod
2
+ VERSION = "0.0.1"
3
+ end
data/rrod.gemspec ADDED
@@ -0,0 +1,28 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'rrod/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "rrod"
8
+ spec.version = Rrod::VERSION
9
+ spec.authors = ["Adam Hunter"]
10
+ spec.email = ["adamhunter@me.com"]
11
+ spec.description = %[Riak Ruby Object Database]
12
+ spec.summary = %[A persistence layer for your ruby objects, powered by Riak]
13
+ spec.homepage = "https://github.com/adamhunter/rrod"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_dependency "thor", "~> 0.18"
22
+ spec.add_dependency "pry", "~> 0.9"
23
+
24
+ spec.add_development_dependency "bundler", "~> 1.3"
25
+ spec.add_development_dependency "rspec", "~> 2.14"
26
+
27
+ spec.add_development_dependency "rake"
28
+ end
data/spec/rrod_spec.rb ADDED
@@ -0,0 +1,8 @@
1
+ require 'spec_helper'
2
+
3
+ describe Rrod do
4
+ it "is the ruby riak database" do
5
+ expect(described_class).to be_a Module
6
+ end
7
+ end
8
+
@@ -0,0 +1,9 @@
1
+ $:.unshift File.expand_path('../../lib', __FILE__)
2
+ require 'rrod'
3
+
4
+ RSpec.configure do |config|
5
+ config.order = 'random'
6
+ config.run_all_when_everything_filtered = true
7
+ config.treat_symbols_as_metadata_keys_with_true_values = true
8
+ config.filter_run :focus
9
+ end
metadata ADDED
@@ -0,0 +1,131 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rrod
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Adam Hunter
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-10-14 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: thor
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '0.18'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '0.18'
27
+ - !ruby/object:Gem::Dependency
28
+ name: pry
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: '0.9'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '0.9'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '1.3'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '1.3'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '2.14'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: '2.14'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ description: Riak Ruby Object Database
84
+ email:
85
+ - adamhunter@me.com
86
+ executables:
87
+ - rrod
88
+ extensions: []
89
+ extra_rdoc_files: []
90
+ files:
91
+ - .gitignore
92
+ - .rspec
93
+ - Gemfile
94
+ - LICENSE.txt
95
+ - README.md
96
+ - Rakefile
97
+ - bin/rrod
98
+ - lib/rrod.rb
99
+ - lib/rrod/all.rb
100
+ - lib/rrod/cli.rb
101
+ - lib/rrod/version.rb
102
+ - rrod.gemspec
103
+ - spec/rrod_spec.rb
104
+ - spec/spec_helper.rb
105
+ homepage: https://github.com/adamhunter/rrod
106
+ licenses:
107
+ - MIT
108
+ metadata: {}
109
+ post_install_message:
110
+ rdoc_options: []
111
+ require_paths:
112
+ - lib
113
+ required_ruby_version: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ required_rubygems_version: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - '>='
121
+ - !ruby/object:Gem::Version
122
+ version: '0'
123
+ requirements: []
124
+ rubyforge_project:
125
+ rubygems_version: 2.0.3
126
+ signing_key:
127
+ specification_version: 4
128
+ summary: A persistence layer for your ruby objects, powered by Riak
129
+ test_files:
130
+ - spec/rrod_spec.rb
131
+ - spec/spec_helper.rb