trigonal-rails3 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZjBlZmQxYjRiYTA4YjM0ZmFjOTU1MjhmMGVhMDQ5YTJjMDFjMDNlMQ==
5
+ data.tar.gz: !binary |-
6
+ YTMzYmE3ODdkODdlYmI0YzY1ZmI0MjY2ZTBhNzUxZTIxMTE4Zjg2Yw==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ YjVkOTgzYTQxNThjODUyZGMyM2FhYjY3NzA0ZjkxNmQ3ZmRmOGVmZjQwZTdm
10
+ MTcyMTc2MjRmMTgwZjJiZjcyYjFhZDc0OTI1MjYwZjhjY2ZkMTUwNzhkN2Qz
11
+ YzYxMWFmZWIzOGRjYmE5ZmNiMjkzOTY0NjlhNTc3OTM2NDdiNzY=
12
+ data.tar.gz: !binary |-
13
+ YjQzOGRlY2Y4NWU4MTQyNzI2ODE2YTNlZTg4ZmQ1YzVjNjhjM2FmYzQ0MDll
14
+ MWJkMjM0MWNkYTIzZjRlN2VjOTNkYWYxM2ZkMzk1ZGVkMjZiZjIzZDZmOTZl
15
+ MDY3ODMxZjlmOGJlZjBiZmQ1YWE3ZGE5YThlNGJkMGE0YTFiZjg=
@@ -0,0 +1,10 @@
1
+ # in .autotest
2
+ require "autotest/bundler"
3
+
4
+ # filter out VCS files and other garbage to reduce HDD usage
5
+ Autotest.add_hook :initialize do |autotest|
6
+ %w{.git .svn .hg .DS_Store ._* vendor tmp log doc}.each do |exception|
7
+ autotest.add_exception(exception)
8
+ end
9
+ end
10
+
@@ -0,0 +1,19 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ coverage
6
+ InstalledFiles
7
+ lib/bundler/man
8
+ pkg
9
+ rdoc
10
+ spec/reports
11
+ test/tmp
12
+ test/version_tmp
13
+ tmp
14
+
15
+ # YARD artifacts
16
+ .yardoc
17
+ _yardoc
18
+ doc/
19
+ .rvmrc
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 trigonal.gemspec
4
+ gemspec
@@ -0,0 +1,29 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ trigonal-rails3 (0.9.0)
5
+ trigonal (= 0.9.1)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ ffi (1.6.0)
11
+ httparty (0.10.2)
12
+ multi_json (~> 1.0)
13
+ multi_xml (>= 0.5.2)
14
+ multi_json (1.7.2)
15
+ multi_xml (0.5.3)
16
+ sys-host (0.6.2)
17
+ sys-uname (0.9.1)
18
+ ffi (>= 1.0.0)
19
+ trigonal (0.9.1)
20
+ httparty (~> 0.10.2)
21
+ multi_json (~> 1.7.1)
22
+ sys-host (~> 0.6.2)
23
+ sys-uname (~> 0.9.1)
24
+
25
+ PLATFORMS
26
+ ruby
27
+
28
+ DEPENDENCIES
29
+ trigonal-rails3!
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Matthew Nielsen
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.
@@ -0,0 +1,34 @@
1
+ # Trigonal-Rails
2
+
3
+ TODO: Write a gem description
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'trigonal-rails3'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install trigonal-rails
18
+
19
+ ## Usage
20
+
21
+ * Test under rubies MRI 1.8.7 and 1.9.x, JRruby 1.6.x and 1.7.x, rubinus 1.2.x
22
+ * Test under rails 2.3.x, 3.0.x, 3.1.x, 3.2.x and 4.x.x
23
+
24
+ TODO:
25
+
26
+ Write usage instructions here
27
+
28
+ ## Contributing
29
+
30
+ 1. Fork it
31
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
32
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
33
+ 4. Push to the branch (`git push origin my-new-feature`)
34
+ 5. Create new Pull Request
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,2 @@
1
+ require 'rubygems'
2
+ require "trigonal-rails3/trigonal-rails3"
@@ -0,0 +1,36 @@
1
+ require 'rubygems'
2
+ require 'trigonal'
3
+
4
+ class Trigonal
5
+ class Rails3
6
+ class IncorrectRailsVersionError < StandardError; end
7
+ def initialize(options = {})
8
+ check_rails_version
9
+
10
+ @trigonal = Trigonal.new(options) do |t|
11
+ t.environment ::Rails.env
12
+ t.appname options[:app_name] || get_local_app_name
13
+ t.name options[:name]
14
+ end
15
+ post(options[:force]) unless options[:do_not_post] == true
16
+ end
17
+
18
+ def post(force=false)
19
+ @trigonal.post_manifest( { :force => force })
20
+ end
21
+
22
+ def check_rails_version
23
+ if get_rails_version.to_s !~ /^3\./
24
+ raise IncorrectRailsVersionError, "The Trigonal-Rails3 gem is for Rails 3 only, you are running it under Rails #{get_rails_version}"
25
+ end
26
+ end
27
+
28
+ def get_rails_version
29
+ @rails_version = ::Rails.version
30
+ end
31
+
32
+ def get_local_app_name
33
+ Rails.application.class.parent_name
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,17 @@
1
+ Gem::Specification.new do |gem|
2
+ gem.name = "trigonal-rails3"
3
+ gem.version = "0.9.0"
4
+ gem.authors = ["Matthew Nielsen"]
5
+ gem.email = ["xunker@pyxidis.org"]
6
+ gem.description = %q{Trigonal gem reporting tool for Rails 3}
7
+ gem.summary = %q{Trigonal gem reporting tool for Rails 3}
8
+ gem.homepage = "https://github.com/xunker/trigonal-rails3"
9
+
10
+ gem.files = `git ls-files`.split($/)
11
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
12
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
13
+ gem.require_paths = ["lib"]
14
+
15
+ gem.add_dependency 'trigonal', '0.9.1'
16
+
17
+ end
metadata ADDED
@@ -0,0 +1,68 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: trigonal-rails3
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.9.0
5
+ platform: ruby
6
+ authors:
7
+ - Matthew Nielsen
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-04-09 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: trigonal
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '='
18
+ - !ruby/object:Gem::Version
19
+ version: 0.9.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '='
25
+ - !ruby/object:Gem::Version
26
+ version: 0.9.1
27
+ description: Trigonal gem reporting tool for Rails 3
28
+ email:
29
+ - xunker@pyxidis.org
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - .autotest
35
+ - .gitignore
36
+ - .rspec
37
+ - Gemfile
38
+ - Gemfile.lock
39
+ - LICENSE.txt
40
+ - README.md
41
+ - Rakefile
42
+ - lib/trigonal-rails3.rb
43
+ - lib/trigonal-rails3/trigonal-rails3.rb
44
+ - trigonal-rails3.gemspec
45
+ homepage: https://github.com/xunker/trigonal-rails3
46
+ licenses: []
47
+ metadata: {}
48
+ post_install_message:
49
+ rdoc_options: []
50
+ require_paths:
51
+ - lib
52
+ required_ruby_version: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ! '>='
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
57
+ required_rubygems_version: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ requirements: []
63
+ rubyforge_project:
64
+ rubygems_version: 2.0.3
65
+ signing_key:
66
+ specification_version: 4
67
+ summary: Trigonal gem reporting tool for Rails 3
68
+ test_files: []