trigonal-rails2 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
+ YmM0ODRlZmJhZmRkMmEzODdjZDdhYzZhZjEzNzdmOTQ3Njk5NjUyYQ==
5
+ data.tar.gz: !binary |-
6
+ NGY4NmNiODhjZDkyNzg5NzgzZDU4ZTA3YjQ2OTU3MmE5YWJlYWM1Yg==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ ZDk5ZjMzNDY4MDIzMWEwYzgwYzRlYjNmODU3NjU0OTM5OGNmZmUyZTg2ZWFj
10
+ ZmIxY2RlZDBmYmQwMTRiMjcxNjNmZGYyNjQxZjMzZWM3OWFjY2VkMWU2NDE1
11
+ NmViMGZjM2I1MTVlYjQ2YjkzMTA0NTY1MTdmYTczZWU5NzRhMmE=
12
+ data.tar.gz: !binary |-
13
+ ZDk0ZDJlNzk1NWJhZjMxZWMxYWVjY2VlNWEyNDQyOWEzMzNiYzZhNzZiYTAx
14
+ NWJhYTRiYTQ1ODkyYzMxZTRiN2MwNmE1ODIyMTIzNzNmNTczYjNlNWIwMjg0
15
+ NWFlMmQ4MDEwZTY0YzYxMzZmOTc3N2Y5NGM5OTAwNWNiNzUyMGE=
@@ -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,30 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ trigonal-rails (1.0.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ diff-lcs (1.2.1)
10
+ multi_json (1.7.1)
11
+ rspec (2.13.0)
12
+ rspec-core (~> 2.13.0)
13
+ rspec-expectations (~> 2.13.0)
14
+ rspec-mocks (~> 2.13.0)
15
+ rspec-core (2.13.1)
16
+ rspec-expectations (2.13.0)
17
+ diff-lcs (>= 1.1.3, < 2.0)
18
+ rspec-mocks (2.13.0)
19
+ simplecov (0.7.1)
20
+ multi_json (~> 1.0)
21
+ simplecov-html (~> 0.7.1)
22
+ simplecov-html (0.7.1)
23
+
24
+ PLATFORMS
25
+ ruby
26
+
27
+ DEPENDENCIES
28
+ rspec (= 2.13.0)
29
+ simplecov
30
+ trigonal-rails!
@@ -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-rails'
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-rails2/trigonal-rails2"
@@ -0,0 +1,35 @@
1
+ require 'rubygems'
2
+ require 'trigonal'
3
+
4
+ class Trigonal
5
+ class Rails2
6
+ class IncorrectRailsVersionError < StandardError; end
7
+ def initialize(options = {})
8
+ check_rails_version
9
+ if options[:app_name].to_s.size < 1
10
+ raise OptionsError, ":appname is required for Trigonal::Rails2.new"
11
+ end
12
+ @trigonal = Trigonal.new(options) do |t|
13
+ t.environment ::Rails.env
14
+ t.appname options[:app_name]
15
+ t.name options[:name]
16
+ end
17
+ post(options[:force]) unless options[:do_not_post] == true
18
+ end
19
+
20
+ def post(force=false)
21
+ @trigonal.post_manifest( { :force => force })
22
+ end
23
+
24
+ def check_rails_version
25
+ if get_rails_version.to_s !~ /^2\./
26
+ raise IncorrectRailsVersionError, "The Trigonal-Rails2 gem is for Rails 2 only, you are running it under Rails #{get_rails_version}"
27
+ end
28
+ end
29
+
30
+ def get_rails_version
31
+ @rails_version = ::Rails.version
32
+ end
33
+
34
+ end
35
+ end
@@ -0,0 +1,17 @@
1
+ Gem::Specification.new do |gem|
2
+ gem.name = "trigonal-rails2"
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 2}
7
+ gem.summary = %q{Trigonal gem reporting tool for Rails 2}
8
+ gem.homepage = "https://github.com/xunker/trigonal-rails2"
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-rails2
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 2
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-rails2.rb
43
+ - lib/trigonal-rails2/trigonal-rails2.rb
44
+ - trigonal-rails2.gemspec
45
+ homepage: https://github.com/xunker/trigonal-rails2
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 2
68
+ test_files: []