evvnt-submission-form-angular-rails 0.0.6

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: a7c6a03e218eec69354486b4b4890995821f9f2b
4
+ data.tar.gz: a0adfe23d05c85d9192fd3cfa0eb6a7029cffe74
5
+ SHA512:
6
+ metadata.gz: 0cea8fb7fc15c80a8512744713bc3b357e682bda17633bacde0c27b9f31884033d9962d8857e4a1c652965f89358122d439ad7568b1f8afc533457e51e804adc
7
+ data.tar.gz: 8c4547e8336438d2e2936b495886039ff7dec83a643918198a05671acdfc34e07b322ab52f9dbb88b7f968b9163653f90a32c5a1e1f6e6c82e6b2261449f96f5
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Dariusz Gertych
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,53 @@
1
+ # evvnt-submission-form-angular-rails
2
+
3
+ [evvnt-submission-form-angular](https://github.com/evvnt/evvnt-submission-form-angular) packaged for Rails assets pipeline.
4
+
5
+ ## Usage
6
+
7
+ Add the following to your gemfile:
8
+
9
+ ```ruby
10
+ gem "evvnt-submission-form-angular-rails"
11
+ ```
12
+
13
+ Add the following directive to your Javascript manifest file (application.js):
14
+
15
+ ```js
16
+ //= require evvnt-submission-form-angular
17
+ ```
18
+
19
+ (or, to application.coffee)
20
+
21
+ ```coffee
22
+ #= require evvnt-submission-form-angular
23
+ ```
24
+
25
+ Add the following directive to your stylesheets manifest file (application.css)
26
+
27
+ ```css
28
+ *= require evvnt-submission-form
29
+ ```
30
+
31
+ Add the following element to the html file you want the form to appear in at the place you want it to appear:
32
+
33
+ ```html
34
+ <evvnt-submission-form/>
35
+ ```
36
+
37
+ ## Contributing
38
+
39
+ 1. Fork it
40
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
41
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
42
+ 4. Push to the branch (`git push origin my-new-feature`)
43
+ 5. Create new Pull Request
44
+
45
+ ## Updating
46
+
47
+ Changes to the original javascript module can be pulled into this gem repo with the following command:
48
+
49
+ ```ruby
50
+ rake fetch
51
+ ```
52
+
53
+ remember to then commit and push the changes before rebuilding and releasing the new gem version.
@@ -0,0 +1,20 @@
1
+ require "bundler/gem_tasks"
2
+
3
+ desc "Fetch new version from https://github.com/evvnt/evvnt-submission-form-angular"
4
+ task :fetch do
5
+ fetch_js
6
+ fetch_css
7
+ end
8
+
9
+ def fetch_js(branch = "master")
10
+ fetch "https://raw.githubusercontent.com/evvnt/evvnt-submission-form-angular/#{branch}/dist/app/js/evvnt-submission-form-angular.js", "app/assets/javascripts/evvnt-submission-form-angular-original.js"
11
+ end
12
+
13
+ def fetch_css(branch = "master")
14
+ fetch "https://raw.githubusercontent.com/evvnt/evvnt-submission-form-angular/#{branch}/dist/evvnt-submission-form.css", "app/assets/stylesheets/evvnt-submission-form.css"
15
+
16
+ end
17
+
18
+ def fetch(source, target)
19
+ sh "curl #{source} > #{target}"
20
+ end
@@ -0,0 +1,51 @@
1
+ require "evvnt-submission-form-angular-rails/version"
2
+
3
+ require "rails-assets-angular"
4
+ require "rails-assets-angular-formly-templates-bootstrap"
5
+ require "rails-assets-angular-formly"
6
+ require "rails-assets-api-check"
7
+ require "rails-assets-bootstrap"
8
+
9
+ module EvvntSubmissionFormAngularRails
10
+
11
+ def self.gem_path
12
+ Pathname(File.realpath(__FILE__)).join('../..')
13
+ end
14
+
15
+ def self.gem_spec
16
+ Gem::Specification::load(
17
+ gem_path.join("evvnt-submission-form-angular-rails.gemspec").to_s
18
+ )
19
+ end
20
+
21
+ def self.load_paths
22
+ gem_path.join('app/assets').each_child.to_a
23
+ end
24
+
25
+ def self.dependencies
26
+ [
27
+ RailsAssetsAngular
28
+ ]
29
+ end
30
+
31
+ if defined?(Rails)
32
+ class Engine < ::Rails::Engine
33
+ # Rails -> use app/assets directory.
34
+ end
35
+ end
36
+
37
+ end
38
+
39
+ class RailsAssets
40
+ @components ||= []
41
+
42
+ class << self
43
+ attr_accessor :components
44
+
45
+ def load_paths
46
+ components.flat_map(&:load_paths)
47
+ end
48
+ end
49
+ end
50
+
51
+ RailsAssets.components << EvvntSubmissionFormAngularRails
@@ -0,0 +1,3 @@
1
+ module EvvntSubmissionFormAngularRails
2
+ VERSION = "0.0.6"
3
+ end
metadata ADDED
@@ -0,0 +1,150 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: evvnt-submission-form-angular-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.6
5
+ platform: ruby
6
+ authors:
7
+ - Trevor Burton-McCreadie
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-11-19 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails-assets-angular
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '='
18
+ - !ruby/object:Gem::Version
19
+ version: 1.4.7
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '='
25
+ - !ruby/object:Gem::Version
26
+ version: 1.4.7
27
+ - !ruby/object:Gem::Dependency
28
+ name: rails-assets-angular-formly
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '='
32
+ - !ruby/object:Gem::Version
33
+ version: 7.2.1
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '='
39
+ - !ruby/object:Gem::Version
40
+ version: 7.2.1
41
+ - !ruby/object:Gem::Dependency
42
+ name: rails-assets-angular-formly-templates-bootstrap
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '='
46
+ - !ruby/object:Gem::Version
47
+ version: 6.1.5
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '='
53
+ - !ruby/object:Gem::Version
54
+ version: 6.1.5
55
+ - !ruby/object:Gem::Dependency
56
+ name: rails-assets-bootstrap
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '='
60
+ - !ruby/object:Gem::Version
61
+ version: 3.3.5
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '='
67
+ - !ruby/object:Gem::Version
68
+ version: 3.3.5
69
+ - !ruby/object:Gem::Dependency
70
+ name: rails-assets-api-check
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '='
74
+ - !ruby/object:Gem::Version
75
+ version: 7.5.3
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '='
81
+ - !ruby/object:Gem::Version
82
+ version: 7.5.3
83
+ - !ruby/object:Gem::Dependency
84
+ name: bundler
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '1.3'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '1.3'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rake
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ description: evvnt-submission-form-angular packaged for Rails assets pipeline. This
112
+ gem is designed to make life easier when integrating the Evvnt submission form into
113
+ rails apps - but it's only a wrapper around the angular module, saving you from
114
+ having to include the source or use bower/npm when you don't have to
115
+ email:
116
+ - trevor@evvnt.com
117
+ executables: []
118
+ extensions: []
119
+ extra_rdoc_files: []
120
+ files:
121
+ - LICENSE.txt
122
+ - README.md
123
+ - Rakefile
124
+ - lib/evvnt-submission-form-angular-rails.rb
125
+ - lib/evvnt-submission-form-angular-rails/version.rb
126
+ homepage: http://github.com/evvnt/evvnt-submission-form-angular-rails
127
+ licenses:
128
+ - MIT
129
+ metadata: {}
130
+ post_install_message:
131
+ rdoc_options: []
132
+ require_paths:
133
+ - lib
134
+ required_ruby_version: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ required_rubygems_version: !ruby/object:Gem::Requirement
140
+ requirements:
141
+ - - ">="
142
+ - !ruby/object:Gem::Version
143
+ version: '0'
144
+ requirements: []
145
+ rubyforge_project:
146
+ rubygems_version: 2.4.6
147
+ signing_key:
148
+ specification_version: 4
149
+ summary: evvnt-submission-form-angular packaged for Rails assets pipeline
150
+ test_files: []