bushido 0.0.30 → 0.0.31
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.
- data/Gemfile +1 -5
- data/Rakefile +3 -6
- data/app/controllers/bushido/data_controller.rb +19 -10
- data/app/controllers/bushido/envs_controller.rb +3 -11
- data/config/routes.rb +1 -0
- data/lib/bushido/data.rb +4 -25
- data/lib/bushido/middleware.rb +1 -3
- data/lib/bushido/models.rb +8 -93
- data/lib/bushido/version.rb +1 -1
- data/lib/bushido.rb +0 -2
- data/lib/engine.rb +8 -5
- data/test/executable_test.rb +10 -0
- data/test/routes_test.rb +12 -0
- data/test/test_helper.rb +1 -2
- metadata +59 -134
- data/lib/bushido/ido_schema.rb +0 -17
- data/lib/rails/#routes.rb# +0 -16
- data/test/controllers/envs_controller_test.rb +0 -21
- data/test/rails_app/Rakefile +0 -9
- data/test/rails_app/app/controllers/application_controller.rb +0 -7
- data/test/rails_app/app/helpers/application_helper.rb +0 -2
- data/test/rails_app/app/views/application/index.html.erb +0 -1
- data/test/rails_app/app/views/layouts/application.html.erb +0 -14
- data/test/rails_app/config/application.rb +0 -50
- data/test/rails_app/config/boot.rb +0 -10
- data/test/rails_app/config/database.yml +0 -22
- data/test/rails_app/config/environment.rb +0 -5
- data/test/rails_app/config/environments/development.rb +0 -26
- data/test/rails_app/config/environments/production.rb +0 -49
- data/test/rails_app/config/environments/test.rb +0 -35
- data/test/rails_app/config/initializers/backtrace_silencers.rb +0 -7
- data/test/rails_app/config/initializers/inflections.rb +0 -10
- data/test/rails_app/config/initializers/mime_types.rb +0 -5
- data/test/rails_app/config/initializers/secret_token.rb +0 -7
- data/test/rails_app/config/initializers/session_store.rb +0 -8
- data/test/rails_app/config/locales/en.yml +0 -5
- data/test/rails_app/config/routes.rb +0 -62
- data/test/rails_app/config.ru +0 -4
- data/test/rails_app/db/development.sqlite3 +0 -0
- data/test/rails_app/db/test.sqlite3 +0 -0
- data/test/rails_app/log/development.log +0 -66
- data/test/rails_app/log/production.log +0 -0
- data/test/rails_app/log/server.log +0 -0
- data/test/rails_app/log/test.log +0 -0
- data/test/rails_app/public/404.html +0 -26
- data/test/rails_app/public/422.html +0 -26
- data/test/rails_app/public/500.html +0 -26
- data/test/rails_app/public/favicon.ico +0 -0
- data/test/rails_app/public/javascripts/application.js +0 -2
- data/test/rails_app/public/javascripts/controls.js +0 -965
- data/test/rails_app/public/javascripts/dragdrop.js +0 -974
- data/test/rails_app/public/javascripts/effects.js +0 -1123
- data/test/rails_app/public/javascripts/prototype.js +0 -6001
- data/test/rails_app/public/javascripts/rails.js +0 -191
- data/test/rails_app/public/stylesheets/.gitkeep +0 -0
- data/test/rails_app/script/rails +0 -6
data/Gemfile
CHANGED
data/Rakefile
CHANGED
@@ -1,15 +1,12 @@
|
|
1
1
|
require 'rake/testtask'
|
2
2
|
require 'bundler'
|
3
|
-
require 'ci/reporter/rake/test_unit'
|
4
|
-
|
5
3
|
Bundler::GemHelper.install_tasks
|
6
4
|
|
7
5
|
task :default => :test
|
8
6
|
|
9
7
|
desc "Run bushido tests"
|
10
8
|
Rake::TestTask.new(:test) do |t|
|
11
|
-
t.libs
|
12
|
-
t.
|
13
|
-
t.pattern = 'test/**/*_test.rb'
|
9
|
+
t.libs += ["lib", "test"]
|
10
|
+
t.test_files = FileList['test/*_test.rb']
|
14
11
|
t.verbose = true
|
15
|
-
end
|
12
|
+
end
|
@@ -1,9 +1,9 @@
|
|
1
1
|
module Bushido
|
2
2
|
class DataController < ApplicationController
|
3
|
-
|
3
|
+
|
4
4
|
# POST /bushido/data/
|
5
5
|
def index
|
6
|
-
@key = params.delete(
|
6
|
+
@key = params.delete("key")
|
7
7
|
if ENV["BUSHIDO_APP_KEY"] != @key
|
8
8
|
respond_to do |format|
|
9
9
|
format.html { render :layout => false, :text => true, :status => :forbidden }
|
@@ -11,14 +11,23 @@ module Bushido
|
|
11
11
|
return
|
12
12
|
end
|
13
13
|
end
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
14
|
+
|
15
|
+
puts "Bushibus Data rec'd"
|
16
|
+
puts params.inspect
|
17
|
+
puts params["category"].inspect
|
18
|
+
|
19
|
+
hook_data = {}
|
20
|
+
hook_data["category"] = params["category"]
|
21
|
+
hook_data["event"] = params["event"]
|
22
|
+
hook_data["data"] = params["data"]
|
23
|
+
|
24
|
+
puts "Firing with: #{hook_data.inspect}"
|
25
|
+
|
26
|
+
Bushido::Data.fire(hook_data, "#{params['category']}.#{params['event']}")
|
27
|
+
|
28
|
+
respond_to do |format|
|
29
|
+
format.json {render :json => {'acknowledged' => true}, :status => 200}
|
30
|
+
end
|
22
31
|
end
|
23
32
|
end
|
24
33
|
end
|
@@ -2,11 +2,7 @@ module Bushido
|
|
2
2
|
class EnvsController < ApplicationController
|
3
3
|
# PUT /bushido/envs/:id
|
4
4
|
def update
|
5
|
-
|
6
|
-
logger.info "params: #{params.inspect}"
|
7
|
-
|
8
|
-
if Bushido::Platform.key != params[:key] or params[:id] == Bushido::Platform.key
|
9
|
-
logger.info "key didn't match! #{Bushido::Platform.key} != #{params[:key]}"
|
5
|
+
if ENV["BUSHIDO_KEY"] != params[:key] or params[:id] == "BUSHIDO_KEY"
|
10
6
|
respond_to do |format|
|
11
7
|
format.html { render :layout => false, :text => true, :status => :forbidden }
|
12
8
|
format.json { render :status => :unprocessable_entity }
|
@@ -14,20 +10,16 @@ module Bushido
|
|
14
10
|
end
|
15
11
|
end
|
16
12
|
|
17
|
-
logger.info "next: #{params[:id]} = #{ENV[params[:id]]}"
|
18
|
-
|
19
13
|
ENV[params[:id]] = params[:value]
|
20
14
|
@value = ENV[params[:id]]
|
21
|
-
|
22
|
-
logger.info "next: #{params[:id]} = #{ENV[params[:id]]}"
|
23
|
-
|
15
|
+
|
24
16
|
respond_to do |format|
|
25
17
|
if @value != ENV[params[:id]]
|
26
18
|
format.html{render :layout => false, :text => true, :status => :unprocessable_entity}
|
27
19
|
format.json{render :status => :unprocessable_entity}
|
28
20
|
else
|
29
21
|
puts "Firing update hooks method from controller"
|
30
|
-
Bushido::
|
22
|
+
Bushido::Hooks.fire(params[:id], {params[:id] => ENV[params[:id]]})
|
31
23
|
format.html{render :text => true}
|
32
24
|
format.json{render :json => {params[:id] => ENV[params[:id]]}}
|
33
25
|
end
|
data/config/routes.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
|
data/lib/bushido/data.rb
CHANGED
@@ -9,41 +9,20 @@ module Bushido
|
|
9
9
|
# register the hooks, and this does that.
|
10
10
|
end
|
11
11
|
|
12
|
-
|
13
|
-
|
12
|
+
|
13
|
+
def publish(model, model_data)
|
14
|
+
# POST to /apps/:id/bus
|
14
15
|
data = {}
|
15
16
|
data[:key] = Bushido::Platform.key
|
16
17
|
|
17
|
-
|
18
18
|
data["data"] = model_data
|
19
|
-
puts data.inspect
|
20
19
|
data["data"]["ido_model"] = model
|
21
20
|
puts "Publishing Ido model"
|
22
21
|
puts data.to_json
|
23
22
|
puts Bushido::Platform.publish_url
|
24
23
|
|
25
|
-
return data
|
26
|
-
end
|
27
|
-
|
28
|
-
|
29
|
-
def publish(model, model_data, verb=:post)
|
30
|
-
puts "in the Data::Publish method"
|
31
|
-
# POST to /apps/:id/bus
|
32
|
-
data = bushido_data(model, model_data)
|
33
|
-
|
34
|
-
puts "got the data"
|
35
|
-
url = Bushido::Platform.publish_url
|
36
|
-
puts "url: #{url} , verb #{verb}"
|
37
|
-
|
38
|
-
if verb == :delete
|
39
|
-
verb = :put
|
40
|
-
url += "/#{data['data']['ido_id']}"
|
41
|
-
end
|
42
|
-
|
43
|
-
puts "Publishing to: #{url}"
|
44
|
-
|
45
24
|
# TODO: Catch non-200 response code
|
46
|
-
response = JSON.parse(RestClient.
|
25
|
+
response = JSON.parse(RestClient.post(Bushido::Platform.publish_url, data.to_json, :content_type => :json, :accept => :json))
|
47
26
|
if response['ido_id'].nil? or response['ido_version'].nil?
|
48
27
|
return false
|
49
28
|
end
|
data/lib/bushido/middleware.rb
CHANGED
@@ -15,8 +15,6 @@ module Bushido
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def call(env)
|
18
|
-
@bushido_claimed = (ENV['BUSHIDO_CLAIMED'].nil? or ENV['BUSHIDO_CLAIMED'].blank?) ? false : true
|
19
|
-
|
20
18
|
status, headers, response = @app.call(env)
|
21
19
|
|
22
20
|
unless @bushido_app_name.empty?
|
@@ -31,7 +29,7 @@ module Bushido
|
|
31
29
|
var _bushido_metrics_token = '#{@bushido_metrics_token}';
|
32
30
|
(function() {
|
33
31
|
var bushido = document.createElement('script'); bushido.type = 'text/javascript'; bushido.async = true;
|
34
|
-
bushido.src = '#{BUSHIDO_JS_URL}
|
32
|
+
bushido.src = '#{BUSHIDO_JS_URL}?#{::Bushido::VERSION.gsub('.', '')}';
|
35
33
|
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(bushido, s);
|
36
34
|
})();
|
37
35
|
</script>
|
data/lib/bushido/models.rb
CHANGED
@@ -4,51 +4,7 @@ module Bushido
|
|
4
4
|
base.extend ClassMethods
|
5
5
|
end
|
6
6
|
|
7
|
-
def
|
8
|
-
puts "posh"
|
9
|
-
end
|
10
|
-
|
11
|
-
def to_ido
|
12
|
-
data = {}
|
13
|
-
|
14
|
-
self.class.ido_schema.each do |schema_field|
|
15
|
-
data[schema_field] = self.send(schema_field.to_sym)
|
16
|
-
end
|
17
|
-
|
18
|
-
data
|
19
|
-
end
|
20
|
-
|
21
|
-
|
22
|
-
def ido_destroy
|
23
|
-
unless self.ido_id.nil?
|
24
|
-
puts "Global IdoData, publishing destroy event to Bushido databus"
|
25
|
-
|
26
|
-
data = self.to_ido
|
27
|
-
|
28
|
-
puts "This is the data I *want* to publish: #{data.inspect}"
|
29
|
-
|
30
|
-
begin
|
31
|
-
response = Bushido::Data.publish(self.class.class_variable_get("@@ido_model"), data, :delete)
|
32
|
-
rescue => e
|
33
|
-
puts e.inspect
|
34
|
-
# TODO: Catch specific exceptions and bubble up errors (e.g. 'bushido is down', 'model is malformed', etc.)
|
35
|
-
return false
|
36
|
-
end
|
37
|
-
|
38
|
-
self.ido_version = response["ido_version"]
|
39
|
-
self.ido_id ||= response["ido_id"]
|
40
|
-
|
41
|
-
puts response.inspect
|
42
|
-
else
|
43
|
-
puts "Remote change, not publishing to Bushido databus"
|
44
|
-
end
|
45
|
-
|
46
|
-
return true
|
47
|
-
end
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
def ido_save
|
7
|
+
def bushido_save
|
52
8
|
# It's possible we're saving an item just handed to us by Bushido, so we
|
53
9
|
# don't want to re-publish it. We can detect it using the version.
|
54
10
|
|
@@ -58,24 +14,15 @@ module Bushido
|
|
58
14
|
puts "new_record? #{self.new_record?}"
|
59
15
|
puts "self.id = #{self.id}"
|
60
16
|
puts "ido_id.nil? #{ido_id.nil?}"
|
61
|
-
unless self.new_record?
|
62
|
-
puts "ido_version == self.class.find(self.id).ido_version ? #{ido_version == self.class.find(self.id).ido_version}"
|
63
|
-
puts "#{self.ido_version} == #{self.class.find(self.id).ido_version} ? #{ido_version == self.class.find(self.id).ido_version}"
|
64
|
-
end
|
17
|
+
puts "ido_version == self.class.find(self.id).ido_version ? #{ido_version == self.class.find(self.id).ido_version}" unless self.new_record?
|
65
18
|
if self.ido_id.nil? or (not self.new_record? and self.ido_version == self.class.find(self.id).ido_version)
|
66
19
|
puts "Local change, publishing to Bushido databus"
|
67
20
|
|
68
|
-
|
69
|
-
data = self.to_ido
|
70
|
-
|
71
|
-
puts "Publishing: #{data}"
|
21
|
+
data = self.to_bushido
|
72
22
|
|
73
23
|
begin
|
74
|
-
|
75
|
-
response = Bushido::Data.publish(self.class.class_variable_get("@@ido_model"), data)
|
76
|
-
puts "done!"
|
24
|
+
response = Bushido::Data.publish(self.class.class_variable_get("@@bushi_model"), data)
|
77
25
|
rescue => e
|
78
|
-
puts "ERROR!"
|
79
26
|
puts e.inspect
|
80
27
|
# TODO: Catch specific exceptions and bubble up errors (e.g. 'bushido is down', 'model is malformed', etc.)
|
81
28
|
return false
|
@@ -93,51 +40,19 @@ module Bushido
|
|
93
40
|
end
|
94
41
|
|
95
42
|
module ClassMethods
|
96
|
-
def
|
97
|
-
self.class_variable_set("@@
|
43
|
+
def bushido model
|
44
|
+
self.class_variable_set("@@bushi_model", model)
|
98
45
|
|
99
46
|
[:create, :update, :destroy].each do |event|
|
100
47
|
puts "Hooking into #{model}.#{event}..."
|
101
48
|
|
102
49
|
Bushido::Data.listen("#{model}.#{event}") do |data, hook|
|
103
50
|
puts "#{hook}.) Firing off #{model}.#{event} now with data: #{data}"
|
104
|
-
self.send("
|
51
|
+
self.send("on_bushido_#{event}".to_sym, self.from_bushido(data))
|
105
52
|
end
|
106
53
|
end
|
107
54
|
|
108
|
-
before_save :
|
109
|
-
before_destroy :ido_destroy
|
110
|
-
end
|
111
|
-
|
112
|
-
def from_ido(incoming_json)
|
113
|
-
model = self.new
|
114
|
-
puts model.inspect
|
115
|
-
|
116
|
-
ido_schema.each do |schema_field|
|
117
|
-
puts "Setting#{schema_field}= #{incoming_json[schema_field]}"
|
118
|
-
model.send("#{schema_field}=".to_sym, incoming_json[schema_field])
|
119
|
-
end
|
120
|
-
|
121
|
-
model
|
122
|
-
end
|
123
|
-
|
124
|
-
|
125
|
-
def on_ido_create(ido_app)
|
126
|
-
ido_app.save
|
127
|
-
end
|
128
|
-
|
129
|
-
def on_ido_update(ido_app)
|
130
|
-
app = self.find_or_create_by_ido_id(ido_app.ido_id)
|
131
|
-
|
132
|
-
ido_schema.each do |schema_field|
|
133
|
-
app.send("#{schema_field}=".to_sym, ido_app[schema_field])
|
134
|
-
end
|
135
|
-
|
136
|
-
app.save
|
137
|
-
end
|
138
|
-
|
139
|
-
def on_ido_destroy(ido_app)
|
140
|
-
self.find_by_ido_id(ido_app.ido_id).try(:destroy)
|
55
|
+
before_save :bushido_save
|
141
56
|
end
|
142
57
|
end
|
143
58
|
end
|
data/lib/bushido/version.rb
CHANGED
data/lib/bushido.rb
CHANGED
@@ -12,7 +12,6 @@ module Bushido #:nodoc:
|
|
12
12
|
require "bushido/hooks"
|
13
13
|
require "bushido/platform"
|
14
14
|
require "bushido/utils"
|
15
|
-
require "bushido/hooks"
|
16
15
|
require "bushido/command"
|
17
16
|
require "bushido/app"
|
18
17
|
require "bushido/user"
|
@@ -23,7 +22,6 @@ module Bushido #:nodoc:
|
|
23
22
|
require "bushido/middleware"
|
24
23
|
require "bushido/models"
|
25
24
|
require "bushido/schema"
|
26
|
-
require "bushido/ido_schema"
|
27
25
|
|
28
26
|
# Default way to setup Bushido. Run rails generate bushido_install to create
|
29
27
|
# a fresh initializer with all configuration values.
|
data/lib/engine.rb
CHANGED
@@ -4,12 +4,15 @@ require 'rails/routes'
|
|
4
4
|
|
5
5
|
module Bushido
|
6
6
|
class Engine < Rails::Engine
|
7
|
-
|
7
|
+
|
8
8
|
initializer "bushido.add_middleware" do |app|
|
9
|
-
|
10
|
-
#Only include our middleware if its on our platform
|
11
|
-
|
9
|
+
|
10
|
+
# Only include our middleware if its on our platform
|
11
|
+
unless ENV['BUSHIDO_APP'].nil?
|
12
|
+
app.middleware.use Bushido::Middleware
|
13
|
+
end
|
14
|
+
|
12
15
|
end
|
13
|
-
|
16
|
+
|
14
17
|
end
|
15
18
|
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
require 'test/unit'
|
2
|
+
|
3
|
+
class TestExecutable < Test::Unit::TestCase #:nodoc:
|
4
|
+
EXECUTABLE =
|
5
|
+
def test_complains_with_no_args
|
6
|
+
output = %x{#{File.expand_path('../../bin/bushido', __FILE__)}}
|
7
|
+
assert output =~ /See bushido -h for more detailed instructions/
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
data/test/routes_test.rb
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class DefaultRoutingTest < ActionController::TestCase
|
4
|
+
test 'set passed variable' do
|
5
|
+
assert_recognizes({:controller => 'bushido', :action => 'index'}, {:path => 'bushido', :method => :post})
|
6
|
+
end
|
7
|
+
|
8
|
+
test 'get passed variable' do
|
9
|
+
assert_recognizes({:controller => 'bushido', :action => 'index'}, {:path => 'bushido', :method => :get})
|
10
|
+
end
|
11
|
+
|
12
|
+
end
|
data/test/test_helper.rb
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
ENV["RAILS_ENV"] = "test"
|
2
|
-
ENV["BUSHIDO_APP_KEY"] = "bushidoappkey"
|
3
2
|
require "rubygems"
|
4
3
|
require "bundler"
|
5
4
|
Bundler.setup
|
6
5
|
|
7
|
-
require "
|
6
|
+
require "dummy/config/environment"
|
8
7
|
require "rails/test_help"
|
9
8
|
require "rails/generators/test_case"
|
metadata
CHANGED
@@ -1,71 +1,74 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: bushido
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.30
|
3
|
+
version: !ruby/object:Gem::Version
|
5
4
|
prerelease:
|
5
|
+
version: 0.0.31
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Sean Grove
|
9
9
|
- Kev Zettler
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
|
13
|
+
|
14
|
+
date: 2011-07-26 00:00:00 -07:00
|
14
15
|
default_executable:
|
15
|
-
dependencies:
|
16
|
-
- !ruby/object:Gem::Dependency
|
16
|
+
dependencies:
|
17
|
+
- !ruby/object:Gem::Dependency
|
17
18
|
name: rest-client
|
18
|
-
|
19
|
+
prerelease: false
|
20
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
19
21
|
none: false
|
20
|
-
requirements:
|
21
|
-
- -
|
22
|
-
- !ruby/object:Gem::Version
|
22
|
+
requirements:
|
23
|
+
- - ">="
|
24
|
+
- !ruby/object:Gem::Version
|
23
25
|
version: 1.6.1
|
24
26
|
type: :runtime
|
25
|
-
|
26
|
-
|
27
|
-
- !ruby/object:Gem::Dependency
|
27
|
+
version_requirements: *id001
|
28
|
+
- !ruby/object:Gem::Dependency
|
28
29
|
name: json
|
29
|
-
|
30
|
+
prerelease: false
|
31
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
30
32
|
none: false
|
31
|
-
requirements:
|
32
|
-
- -
|
33
|
-
- !ruby/object:Gem::Version
|
33
|
+
requirements:
|
34
|
+
- - ">="
|
35
|
+
- !ruby/object:Gem::Version
|
34
36
|
version: 1.4.6
|
35
37
|
type: :runtime
|
36
|
-
|
37
|
-
|
38
|
-
- !ruby/object:Gem::Dependency
|
38
|
+
version_requirements: *id002
|
39
|
+
- !ruby/object:Gem::Dependency
|
39
40
|
name: highline
|
40
|
-
|
41
|
+
prerelease: false
|
42
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
41
43
|
none: false
|
42
|
-
requirements:
|
43
|
-
- -
|
44
|
-
- !ruby/object:Gem::Version
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
45
47
|
version: 1.6.1
|
46
48
|
type: :runtime
|
47
|
-
|
48
|
-
|
49
|
-
- !ruby/object:Gem::Dependency
|
49
|
+
version_requirements: *id003
|
50
|
+
- !ruby/object:Gem::Dependency
|
50
51
|
name: orm_adapter
|
51
|
-
|
52
|
+
prerelease: false
|
53
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
52
54
|
none: false
|
53
|
-
requirements:
|
55
|
+
requirements:
|
54
56
|
- - ~>
|
55
|
-
- !ruby/object:Gem::Version
|
57
|
+
- !ruby/object:Gem::Version
|
56
58
|
version: 0.0.3
|
57
59
|
type: :runtime
|
58
|
-
|
59
|
-
version_requirements: *2151798860
|
60
|
+
version_requirements: *id004
|
60
61
|
description: A module for integrating the Bushido platform into a rails app
|
61
|
-
email:
|
62
|
+
email:
|
62
63
|
- support@bushi.do
|
63
64
|
- s@bushi.do
|
64
|
-
executables:
|
65
|
+
executables:
|
65
66
|
- bushido
|
66
67
|
extensions: []
|
68
|
+
|
67
69
|
extra_rdoc_files: []
|
68
|
-
|
70
|
+
|
71
|
+
files:
|
69
72
|
- .gitignore
|
70
73
|
- Gemfile
|
71
74
|
- Rakefile
|
@@ -73,6 +76,7 @@ files:
|
|
73
76
|
- app/controllers/bushido/envs_controller.rb
|
74
77
|
- bin/bushido
|
75
78
|
- bushido.gemspec
|
79
|
+
- config/routes.rb
|
76
80
|
- lib/bushido.rb
|
77
81
|
- lib/bushido/app.rb
|
78
82
|
- lib/bushido/command.rb
|
@@ -80,7 +84,6 @@ files:
|
|
80
84
|
- lib/bushido/envs.rb
|
81
85
|
- lib/bushido/event.rb
|
82
86
|
- lib/bushido/hooks.rb
|
83
|
-
- lib/bushido/ido_schema.rb
|
84
87
|
- lib/bushido/middleware.rb
|
85
88
|
- lib/bushido/models.rb
|
86
89
|
- lib/bushido/orm/active_record.rb
|
@@ -99,117 +102,39 @@ files:
|
|
99
102
|
- lib/generators/mongoid/bushido_generator.rb
|
100
103
|
- lib/generators/templates/README
|
101
104
|
- lib/generators/templates/bushido.rb
|
102
|
-
- lib/rails/#routes.rb#
|
103
105
|
- lib/rails/routes.rb
|
104
|
-
- test/
|
105
|
-
- test/
|
106
|
-
- test/rails_app/app/controllers/application_controller.rb
|
107
|
-
- test/rails_app/app/helpers/application_helper.rb
|
108
|
-
- test/rails_app/app/views/application/index.html.erb
|
109
|
-
- test/rails_app/app/views/layouts/application.html.erb
|
110
|
-
- test/rails_app/config.ru
|
111
|
-
- test/rails_app/config/application.rb
|
112
|
-
- test/rails_app/config/boot.rb
|
113
|
-
- test/rails_app/config/database.yml
|
114
|
-
- test/rails_app/config/environment.rb
|
115
|
-
- test/rails_app/config/environments/development.rb
|
116
|
-
- test/rails_app/config/environments/production.rb
|
117
|
-
- test/rails_app/config/environments/test.rb
|
118
|
-
- test/rails_app/config/initializers/backtrace_silencers.rb
|
119
|
-
- test/rails_app/config/initializers/inflections.rb
|
120
|
-
- test/rails_app/config/initializers/mime_types.rb
|
121
|
-
- test/rails_app/config/initializers/secret_token.rb
|
122
|
-
- test/rails_app/config/initializers/session_store.rb
|
123
|
-
- test/rails_app/config/locales/en.yml
|
124
|
-
- test/rails_app/config/routes.rb
|
125
|
-
- test/rails_app/db/development.sqlite3
|
126
|
-
- test/rails_app/db/test.sqlite3
|
127
|
-
- test/rails_app/log/development.log
|
128
|
-
- test/rails_app/log/production.log
|
129
|
-
- test/rails_app/log/server.log
|
130
|
-
- test/rails_app/log/test.log
|
131
|
-
- test/rails_app/public/404.html
|
132
|
-
- test/rails_app/public/422.html
|
133
|
-
- test/rails_app/public/500.html
|
134
|
-
- test/rails_app/public/favicon.ico
|
135
|
-
- test/rails_app/public/javascripts/application.js
|
136
|
-
- test/rails_app/public/javascripts/controls.js
|
137
|
-
- test/rails_app/public/javascripts/dragdrop.js
|
138
|
-
- test/rails_app/public/javascripts/effects.js
|
139
|
-
- test/rails_app/public/javascripts/prototype.js
|
140
|
-
- test/rails_app/public/javascripts/rails.js
|
141
|
-
- test/rails_app/public/stylesheets/.gitkeep
|
142
|
-
- test/rails_app/script/rails
|
106
|
+
- test/executable_test.rb
|
107
|
+
- test/routes_test.rb
|
143
108
|
- test/test_helper.rb
|
144
109
|
has_rdoc: true
|
145
110
|
homepage: https://github.com/sgrove/bushidogem
|
146
111
|
licenses: []
|
112
|
+
|
147
113
|
post_install_message:
|
148
114
|
rdoc_options: []
|
149
|
-
|
115
|
+
|
116
|
+
require_paths:
|
150
117
|
- lib
|
151
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
118
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
152
119
|
none: false
|
153
|
-
requirements:
|
154
|
-
- -
|
155
|
-
- !ruby/object:Gem::Version
|
156
|
-
version:
|
157
|
-
|
158
|
-
- 0
|
159
|
-
hash: 1185013954013927202
|
160
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: "0"
|
124
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
161
125
|
none: false
|
162
|
-
requirements:
|
163
|
-
- -
|
164
|
-
- !ruby/object:Gem::Version
|
165
|
-
version:
|
166
|
-
segments:
|
167
|
-
- 0
|
168
|
-
hash: 1185013954013927202
|
126
|
+
requirements:
|
127
|
+
- - ">="
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: "0"
|
169
130
|
requirements: []
|
131
|
+
|
170
132
|
rubyforge_project: bushido
|
171
133
|
rubygems_version: 1.6.2
|
172
134
|
signing_key:
|
173
135
|
specification_version: 3
|
174
136
|
summary: Bushido integration
|
175
|
-
test_files:
|
176
|
-
- test/
|
177
|
-
- test/
|
178
|
-
- test/rails_app/app/controllers/application_controller.rb
|
179
|
-
- test/rails_app/app/helpers/application_helper.rb
|
180
|
-
- test/rails_app/app/views/application/index.html.erb
|
181
|
-
- test/rails_app/app/views/layouts/application.html.erb
|
182
|
-
- test/rails_app/config.ru
|
183
|
-
- test/rails_app/config/application.rb
|
184
|
-
- test/rails_app/config/boot.rb
|
185
|
-
- test/rails_app/config/database.yml
|
186
|
-
- test/rails_app/config/environment.rb
|
187
|
-
- test/rails_app/config/environments/development.rb
|
188
|
-
- test/rails_app/config/environments/production.rb
|
189
|
-
- test/rails_app/config/environments/test.rb
|
190
|
-
- test/rails_app/config/initializers/backtrace_silencers.rb
|
191
|
-
- test/rails_app/config/initializers/inflections.rb
|
192
|
-
- test/rails_app/config/initializers/mime_types.rb
|
193
|
-
- test/rails_app/config/initializers/secret_token.rb
|
194
|
-
- test/rails_app/config/initializers/session_store.rb
|
195
|
-
- test/rails_app/config/locales/en.yml
|
196
|
-
- test/rails_app/config/routes.rb
|
197
|
-
- test/rails_app/db/development.sqlite3
|
198
|
-
- test/rails_app/db/test.sqlite3
|
199
|
-
- test/rails_app/log/development.log
|
200
|
-
- test/rails_app/log/production.log
|
201
|
-
- test/rails_app/log/server.log
|
202
|
-
- test/rails_app/log/test.log
|
203
|
-
- test/rails_app/public/404.html
|
204
|
-
- test/rails_app/public/422.html
|
205
|
-
- test/rails_app/public/500.html
|
206
|
-
- test/rails_app/public/favicon.ico
|
207
|
-
- test/rails_app/public/javascripts/application.js
|
208
|
-
- test/rails_app/public/javascripts/controls.js
|
209
|
-
- test/rails_app/public/javascripts/dragdrop.js
|
210
|
-
- test/rails_app/public/javascripts/effects.js
|
211
|
-
- test/rails_app/public/javascripts/prototype.js
|
212
|
-
- test/rails_app/public/javascripts/rails.js
|
213
|
-
- test/rails_app/public/stylesheets/.gitkeep
|
214
|
-
- test/rails_app/script/rails
|
137
|
+
test_files:
|
138
|
+
- test/executable_test.rb
|
139
|
+
- test/routes_test.rb
|
215
140
|
- test/test_helper.rb
|