chassis-pony 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,5 @@
1
+ .DS_Store
2
+ *.gem
3
+ .bundle
4
+ Gemfile.lock
5
+ pkg/*
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
data/README.md ADDED
@@ -0,0 +1,32 @@
1
+ ## Requirements
2
+
3
+ - [sinatra-chassis](http://jarrodtaylor.github.io/sinatra-chassis/) v1.1+
4
+ - Experience with [Pony](https://github.com/benprew/pony).
5
+
6
+ ## Instructions
7
+
8
+ Add the chassis-pony extension to your gemfile:
9
+
10
+ gem 'chassis-pony', '>= 1.0.0'
11
+
12
+ Then run ```bundle install``` again.
13
+
14
+ chassis-pony will add a new rake task to set itself up: ```rake pony:setup```
15
+
16
+ This will add a default Pony setup at settings/pony.rb. Fill out the settings file, then you can use Pony in your Chassis app as usual.
17
+
18
+ ## Release Notes
19
+
20
+ ##### v1.0.0 (June 14, 2013)
21
+
22
+ - First!
23
+
24
+ ## License
25
+
26
+ Copyright (C) 2013 Jarrod Taylor.
27
+
28
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
29
+
30
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
31
+
32
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,22 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path('../lib', __FILE__)
3
+
4
+ Gem::Specification.new do |s|
5
+
6
+ s.name = 'chassis-pony'
7
+ s.version = '1.0.0'
8
+ s.author = 'Jarrod Taylor'
9
+ s.email = 'jarrodtaylor@icloud.com'
10
+ s.homepage = 'https://github.com/jarrodtaylor/chassis-pony'
11
+ s.summary = 'Adds Pony gem, config, templates, and Rake tasks to Chassis.'
12
+ s.license = 'MIT'
13
+
14
+ s.files = `git ls-files`.split("\n")
15
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
16
+ s.require_paths = ["lib"]
17
+
18
+ s.required_ruby_version = ">= 1.9.2"
19
+
20
+ s.add_dependency 'sinatra-chassis', '>= 1.1.0'
21
+
22
+ end
@@ -0,0 +1 @@
1
+ # Code here will be available to apps using your extension.
@@ -0,0 +1,12 @@
1
+ namespace :pony do
2
+
3
+ desc 'Set up Pony'
4
+ task :setup do
5
+ create_directory './settings'
6
+ append_to_file './Gemfile', "\ngem 'pony', '~> 1.4'\n"
7
+ system "bundle install"
8
+ copy_file "#{File.dirname(__FILE__)}/../templates/settings.rb",
9
+ "./settings/pony.rb"
10
+ end
11
+
12
+ end
@@ -0,0 +1,27 @@
1
+ Pony.options = {
2
+ via: :smtp,
3
+ via_options: {
4
+ address: '',
5
+ port: '',
6
+ domain: '',
7
+ user_name: '',
8
+ password: '',
9
+ authentication: :plain,
10
+ enable_starttls_auto: true
11
+ }
12
+ }
13
+
14
+ # Heroku example:
15
+
16
+ # Pony.options = {
17
+ # via: :smtp,
18
+ # via_options: {
19
+ # address: 'smtp.sendgrid.net',
20
+ # port: '587',
21
+ # domain: 'heroku.com',
22
+ # user_name: ENV['SENDGRID_USERNAME'],
23
+ # password: ENV['SENDGRID_PASSWORD'],
24
+ # authentication: :plain,
25
+ # enable_starttls_auto: true
26
+ # }
27
+ # }
metadata ADDED
@@ -0,0 +1,70 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: chassis-pony
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Jarrod Taylor
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-06-14 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: sinatra-chassis
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: 1.1.0
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 1.1.0
30
+ description:
31
+ email: jarrodtaylor@icloud.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - .gitignore
37
+ - Gemfile
38
+ - README.md
39
+ - Rakefile
40
+ - chassis-pony.gemspec
41
+ - lib/chassis-pony.rb
42
+ - lib/chassis/tasks/chassis-pony.rake
43
+ - lib/chassis/templates/settings.rb
44
+ homepage: https://github.com/jarrodtaylor/chassis-pony
45
+ licenses:
46
+ - MIT
47
+ post_install_message:
48
+ rdoc_options: []
49
+ require_paths:
50
+ - lib
51
+ required_ruby_version: !ruby/object:Gem::Requirement
52
+ none: false
53
+ requirements:
54
+ - - ! '>='
55
+ - !ruby/object:Gem::Version
56
+ version: 1.9.2
57
+ required_rubygems_version: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ! '>='
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
63
+ requirements: []
64
+ rubyforge_project:
65
+ rubygems_version: 1.8.25
66
+ signing_key:
67
+ specification_version: 3
68
+ summary: Adds Pony gem, config, templates, and Rake tasks to Chassis.
69
+ test_files: []
70
+ has_rdoc: