octopolo-plugin-example 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 79a837f9469d80df7c476a95dcc36a2ddbaf63e5
4
+ data.tar.gz: 278194925a40483998ef21f3b6858c05d9e4d5eb
5
+ SHA512:
6
+ metadata.gz: 88a3ecba3d7df031603fe36424c5c47dac8a1749fca0186cef89de1984d2697f80ad71486cad6fb6370415acb74b7a753c9f60c29bb1408e1d74187a874c9952
7
+ data.tar.gz: cbb2bb5e7c30553777a8df8b1b1908450fbb16dff8fd2d911712c5a4b8ab5d9fb0ca72f278d07770b31fe45b33e38d6b106b65c2250ba0f8f24d36d0eecbb620
data/README.md ADDED
@@ -0,0 +1,30 @@
1
+ octopolo-plugin-example
2
+ -----------------------
3
+
4
+ A plugin example for octopolo. Also used for testing plugins with octopolo.
5
+
6
+
7
+ Installation
8
+ ------------
9
+
10
+ Add this line to your application's Gemfile:
11
+
12
+ gem 'octopolo-plugin-example'
13
+
14
+ And then execute:
15
+
16
+ $ bundle
17
+
18
+ Or install it yourself as:
19
+
20
+ $ gem install octopolo-plugin-example
21
+
22
+
23
+ Contributing
24
+ ------------
25
+
26
+ 1. Fork it ( https://github.com/sportngin/octopolo-plugin-example/fork )
27
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
28
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
29
+ 4. Push to the branch (`git push origin my-new-feature`)
30
+ 5. Create a new Pull Request
@@ -0,0 +1,5 @@
1
+ require "octopolo_plugin_example/version"
2
+ require "octopolo_plugin_example/example_plugin"
3
+
4
+ module OctopoloPluginExample
5
+ end
@@ -0,0 +1,15 @@
1
+ module Octopolo
2
+ class ExamplePlugin
3
+ EXAMPLE_CONSTANT = 'foobar'
4
+
5
+ def example_method
6
+ 'barfoo'
7
+ end
8
+ end
9
+
10
+ class Config
11
+ def example_var
12
+ @example_var || ExamplePlugin::EXAMPLE_CONSTANT
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,3 @@
1
+ module OctopoloPluginExample
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,18 @@
1
+ require 'spec_helper'
2
+
3
+ describe Octopolo::Config do
4
+
5
+ describe "config defaults" do
6
+ describe "#example_var" do
7
+ it "equals ExamplePlugin::EXAMPLE_CONSTANT by default" do
8
+ expect(subject.example_var).to eq Octopolo::ExamplePlugin::EXAMPLE_CONSTANT
9
+ end
10
+
11
+ it "is the specified var otherwise" do
12
+ config = Octopolo::Config.new(:example_var => 'baz')
13
+ expect(config.example_var).to eq 'baz'
14
+ end
15
+ end
16
+ end
17
+
18
+ end
@@ -0,0 +1,17 @@
1
+ require 'spec_helper'
2
+
3
+ describe Octopolo::ExamplePlugin do
4
+
5
+ describe "::EXAMPLE_CONSTANT" do
6
+ it "equals 'foobar'" do
7
+ expect(Octopolo::ExamplePlugin::EXAMPLE_CONSTANT).to eq 'foobar'
8
+ end
9
+ end
10
+
11
+ describe "#example_method" do
12
+ it "returns 'barfoo'" do
13
+ expect(subject.example_method).to eq 'barfoo'
14
+ end
15
+ end
16
+
17
+ end
@@ -0,0 +1,5 @@
1
+ require 'octopolo'
2
+ require 'octopolo_plugin_example'
3
+
4
+ RSpec.configure do |config|
5
+ end
metadata ADDED
@@ -0,0 +1,109 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: octopolo-plugin-example
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Nick LaMuro
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-07-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: octopolo
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: '1.6'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '1.6'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ description: Use for testing and as a base for octopolo plugins
70
+ email:
71
+ - nick.lamuro@sportngin.com
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - README.md
77
+ - lib/octopolo_plugin_example.rb
78
+ - lib/octopolo_plugin_example/example_plugin.rb
79
+ - lib/octopolo_plugin_example/version.rb
80
+ - spec/octopolo/config_spec.rb
81
+ - spec/octopolo_plugin_example/example_plugin_spec.rb
82
+ - spec/spec_helper.rb
83
+ homepage: https://github.com/sportngin/octopolo-plugin-example
84
+ licenses: []
85
+ metadata: {}
86
+ post_install_message:
87
+ rdoc_options: []
88
+ require_paths:
89
+ - lib
90
+ required_ruby_version: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - '>='
93
+ - !ruby/object:Gem::Version
94
+ version: '0'
95
+ required_rubygems_version: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - '>='
98
+ - !ruby/object:Gem::Version
99
+ version: '0'
100
+ requirements: []
101
+ rubyforge_project:
102
+ rubygems_version: 2.2.2
103
+ signing_key:
104
+ specification_version: 4
105
+ summary: An example Octopolo plugin
106
+ test_files:
107
+ - spec/octopolo/config_spec.rb
108
+ - spec/octopolo_plugin_example/example_plugin_spec.rb
109
+ - spec/spec_helper.rb