marxjs-rails 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: a3acb10000ac260ecd92f509f05ef4ce4149987e
4
+ data.tar.gz: c4f40191283947f9c47349d93e7b70360b13267e
5
+ SHA512:
6
+ metadata.gz: 608f7f66a169ca11df87eea8c3e073cf01cb6829c916a91444344ddd35002d58648d9a96652c9ec6b7e8c9b0a4dfc7b21b9587d53372fec9e9d2365e1c29078f
7
+ data.tar.gz: 9ba18cf466850a513dd6a824f4a1cb7f62fb75a6cdc63b9882999b95906d56fc88d6d4bf29d10ea9990d94102234eeb5ca950380bf965bd1bd995818f227b108
data/MIT-LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2009, Nick Quaranto
2
+
3
+ Permission is hereby granted, free of charge, to any person
4
+ obtaining a copy of this software and associated documentation
5
+ files (the "Software"), to deal in the Software without
6
+ restriction, including without limitation the rights to use,
7
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the
9
+ Software is furnished to do so, subject to the following
10
+ conditions:
11
+
12
+ The above copyright notice and this permission notice shall be
13
+ included in all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
+ OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,74 @@
1
+ # Marxjs::Rails
2
+
3
+ TODO: Write a gem description
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'marxjs-rails'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install marxjs-rails
18
+
19
+ ## Usage
20
+ Add the following directive to your Javascript manifest file (application.js):
21
+
22
+ <pre>
23
+ //= marx
24
+ </pre>
25
+
26
+ Simply create a new instance of the `Marx` object in one of your `.js.coffee` files and you are up and running.
27
+
28
+ <pre>
29
+ $ ->
30
+ marx = new Marx()
31
+ </pre>
32
+
33
+ If you wish to limit this to only one form make sure to pass the _form_ option to the `Marx` object:
34
+
35
+ <pre>
36
+ $ ->
37
+ marx = new Marx
38
+ form: 'form.my-form'
39
+ </pre>
40
+
41
+ ### Options
42
+
43
+ | Value | Default | Description |
44
+ |----------|----------|------------------------------------------|
45
+ | controls | standard | select controls provided by MarxJS. See below for options |
46
+ | form | null | css selector of a specific form in which to effect changes on |
47
+ | position | bottom-right | top-left, top-right, bottom-right, bottom-left |
48
+ | ipsum | 3 | default number of paragraphs for the ipsum generator |
49
+ | ipsum-max | 10 | maximum paragraphs allowed to generate |
50
+
51
+
52
+ **Control Options**
53
+
54
+ | Value | Description |
55
+ |----------|----------------------------------------------------|
56
+ | minimum | just the MarxJS button that fills out entire form. |
57
+ | standard | gives options for populate whole form or individual form field types. |
58
+ | advanced | all standard options and Clear Form, Populate and Submit, Show Hidden Fields, Expand Select Boxes and Generate Ipsum.|
59
+ | toggle-advanced | gives both standard and advanced options but hides advanced till you need them |
60
+ | toggle-all | provides buttons to populate whole form, show standard controls and show advanced controls |
61
+
62
+
63
+ **Dependencies**
64
+
65
+ Marx.js has a dependency on jQuery version >= 1.10.x
66
+
67
+
68
+ ## Contributing
69
+
70
+ 1. Fork it ( http://github.com/Sparkmasterflex/marxjs-rails/fork )
71
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
72
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
73
+ 4. Push to the branch (`git push origin my-new-feature`)
74
+ 5. Create new Pull Request
@@ -0,0 +1,8 @@
1
+ require "marxjs/rails/version"
2
+
3
+ module Marxjs
4
+ module Rails
5
+ class Engine < ::Rails::Engine
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,5 @@
1
+ module Marxjs
2
+ module Rails
3
+ VERSION = "0.0.1"
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,93 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: marxjs-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Keith Raymond
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-11-16 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.5'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.5'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: railties
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>'
46
+ - !ruby/object:Gem::Version
47
+ version: '3.1'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>'
53
+ - !ruby/object:Gem::Version
54
+ version: '3.1'
55
+ description: MARXjs was created for developers building web applications with long
56
+ forms. MARXjs is a plugin that gives the developer the ability to populate any and
57
+ all the fields in their forms easily and with a small 10kb file. Forms are populated
58
+ with Marx Brother names, years of their movies and quotes from those movies.
59
+ email:
60
+ - raymondke99@gmail.com
61
+ executables: []
62
+ extensions: []
63
+ extra_rdoc_files: []
64
+ files:
65
+ - lib/marxjs/rails/version.rb
66
+ - lib/marxjs/rails.rb
67
+ - MIT-LICENSE
68
+ - README.md
69
+ homepage: https://github.com/Sparkmasterflex/marxjs-rails
70
+ licenses:
71
+ - MIT
72
+ metadata: {}
73
+ post_install_message:
74
+ rdoc_options: []
75
+ require_paths:
76
+ - lib
77
+ required_ruby_version: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - '>='
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ required_rubygems_version: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - '>='
85
+ - !ruby/object:Gem::Version
86
+ version: '0'
87
+ requirements: []
88
+ rubyforge_project:
89
+ rubygems_version: 2.0.14
90
+ signing_key:
91
+ specification_version: 4
92
+ summary: A JavaScript plugin for populating forms to speed up testing
93
+ test_files: []