cljs-rails 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +4 -0
- data/.travis.yml +10 -0
- data/Appraisals +7 -0
- data/Gemfile +3 -0
- data/README.md +90 -4
- data/cljs-rails.gemspec +4 -3
- data/gemfiles/rails_4.gemfile +10 -0
- data/gemfiles/rails_5.gemfile +10 -0
- data/lib/cljs-rails.rb +1 -0
- data/lib/cljs/rails.rb +1 -5
- data/lib/cljs/rails/helper.rb +43 -0
- data/lib/cljs/rails/version.rb +1 -1
- data/lib/cljs/railtie.rb +26 -0
- data/lib/generators/cljs_rails/install_generator.rb +66 -0
- data/lib/generators/templates/Procfile +4 -0
- data/lib/generators/templates/boot.properties +2 -0
- data/lib/generators/templates/build.boot +32 -0
- data/lib/generators/templates/core.cljs +11 -0
- data/lib/generators/templates/main.cljs.edn +3 -0
- data/lib/tasks/cljs.rake +14 -0
- data/spec/helper_spec.rb +54 -0
- data/spec/spec_helper.rb +15 -0
- metadata +31 -27
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd6cef6766fcac9f8b44fd2a40fb77322ba79ea6
|
4
|
+
data.tar.gz: 7e1d2fdcdcfcfc72b23ec85cfd8aeff2fb81b1db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c97336ac15cae78c2fa1c1259ceffc0cd8ee812f8bf2c5036d4c56ec35b57d1b74e7cbe3489965574615963ae4f9b446c80f1d5afa24836ee0617d71171f30de
|
7
|
+
data.tar.gz: 4368c85ad3736ecbc0b185029b9060e9583f9e30b892d78300592c960ccd835dd000817594f7873f10b019319b04fe1a3826c7057327e9b9c0313e6ff899f671
|
data/.gitignore
CHANGED
data/.travis.yml
ADDED
data/Appraisals
ADDED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,9 +1,26 @@
|
|
1
|
-
|
1
|
+
[![Build Status](https://travis-ci.org/bogdan-dumitru/cljs-rails.svg?branch=master)](https://travis-ci.org/bogdan-dumitru/cljs-rails) [![Gem Version](https://badge.fury.io/rb/cljs-rails.svg)](http://badge.fury.io/rb/cljs-rails)
|
2
2
|
|
3
|
-
|
3
|
+
# cljs-rails
|
4
|
+
|
5
|
+
**Join the functional bandwagon now in just a few easy steps!**
|
6
|
+
|
7
|
+
If you're reading this you're either:
|
8
|
+
|
9
|
+
- (a) sitting in lawnchair relaxed because you've [found happiness](https://www.youtube.com/watch?v=A0VaIKK2ijM)
|
10
|
+
- (b) on your way to becoming fundamentally a better person
|
11
|
+
|
12
|
+
**cljs-rails** wants to help you integrate clojurescript into an existing Rails application without too much hassle. It depends [boot](https://github.com/boot-clj/boot) on boot for building your assets and provide a minimal template to get up and running fast with that functional goodness.
|
13
|
+
|
14
|
+
## Boot vs Leiningen
|
15
|
+
|
16
|
+
> Potential for flamewar, check.
|
17
|
+
|
18
|
+
I'm new to the clojurescript universe and after playing around a bit with the tools I found boot to provide a smoother startup experience, especially for people who are just getting started with the ecosystem. Granted the design choice diverges a bit from the *data all the way down* that we hold dear, their [arguments](https://news.ycombinator.com/item?id=8553189) seem to hold water.
|
4
19
|
|
5
20
|
## Installation
|
6
21
|
|
22
|
+
First install boot. See the [install guide](https://github.com/boot-clj/boot#install) for more info.
|
23
|
+
|
7
24
|
Add this line to your application's Gemfile:
|
8
25
|
|
9
26
|
```ruby
|
@@ -18,9 +35,78 @@ Or install it yourself as:
|
|
18
35
|
|
19
36
|
$ gem install cljs-rails
|
20
37
|
|
21
|
-
|
38
|
+
Run the generator
|
39
|
+
|
40
|
+
$ bundle exec rails generate cljs_rails:install <optional app-name, defaults to the rails app name>
|
41
|
+
|
42
|
+
Bundle install again because the generator adds a new dependency (foreman)
|
43
|
+
|
44
|
+
$ bundle
|
45
|
+
|
46
|
+
## Post-Install
|
47
|
+
|
48
|
+
Because the cljs build (powered by boot) needs to be run in parallel with the rails server, ``foreman`` was added to the gemfile and a basic ``Procfile`` that starts both these processes. So from now on instead of ``bundle exec rails server`` you should do:
|
49
|
+
|
50
|
+
$ foreman start
|
51
|
+
|
52
|
+
> Because of the way clojure works the first time you start foreman (or run ``boot dev``) it will download all dependencies and also build your project. This is the equivalent, in webpack world, of doing both the ``npm install`` and ``webpack build``. Subsequent builds will not download depndencies and of course the dev tasks starts a watch that does hot-reloading and incremental builds (2k17).
|
53
|
+
|
54
|
+
Currently the bundle isn't loaded anywhere in your Rails app, you must add it to your layout using the ``cljs_main_path`` helper:
|
55
|
+
|
56
|
+
```erb
|
57
|
+
<%= javascript_include_tag cljs_main_path %>
|
58
|
+
```
|
59
|
+
|
60
|
+
After doing this you should navigate to an action and see clojurescript devtools messages in your browser console.
|
61
|
+
|
62
|
+
Also, the generated core/main function injects "Hello world" into the document body.
|
63
|
+
You can go to ``cljs/src/<app-name>/core.cljs`` and edit the text there. It should automagically recompile and run again in the browser! Yey!
|
64
|
+
|
65
|
+
## Notes
|
66
|
+
|
67
|
+
### Structure
|
68
|
+
|
69
|
+
The generator sets up a ``cljs`` folder with the source, a main and a namespace derived from the rails app name.
|
70
|
+
|
71
|
+
```
|
72
|
+
▾ cljs/
|
73
|
+
▾ src/
|
74
|
+
▾ <app-name>/
|
75
|
+
core.cljs
|
76
|
+
main.cljs.edn
|
77
|
+
```
|
78
|
+
|
79
|
+
> You can provide a different name as the first argument of the install generator.
|
80
|
+
|
81
|
+
### Production
|
82
|
+
|
83
|
+
There's a rake tasks provided ``cljs:compile`` that builds for production (with advanced optimisations).
|
84
|
+
It just runs ``boot #{production_task}``. Production task defaults to "prod" and is defined in the ``build.boot`` template, but you can configure it via ``config.cljs.production_build_task``.
|
85
|
+
|
86
|
+
The production build is configured by default to output to ``app/assets/cljs-build/``. This means that the sprockets can now find it.
|
87
|
+
The ``cljs_main_path`` helper will just return "main.js" when in production so sprokets will pickup the build file. In development/test it uses the dev-server settings.
|
88
|
+
|
89
|
+
> By default ``app/assets/cljs-build`` is added to gitignore just in case, but you might want to (due to some limitations in your environemnt, but you shouldn't) commit your build artefacts to the repo.
|
90
|
+
|
91
|
+
#### Deployment to heroku
|
92
|
+
|
93
|
+
> WIP: Need to experiment with buildpacks and setup an example repo.
|
94
|
+
|
95
|
+
You can enhance the ``assets:precompile`` task so that it runs ``cljs:compile``. Add this to a rake file:
|
96
|
+
|
97
|
+
```ruby
|
98
|
+
Rake::Task['assets:precompile'].enhance ['cljs:compile']
|
99
|
+
```
|
100
|
+
|
101
|
+
Now as long as there's a proper buildpack being used that has ``boot`` installed, everything should work.
|
102
|
+
|
103
|
+
#### Custom deployment
|
104
|
+
|
105
|
+
Same logic as above should apply as long as you attach the compile task to run before ``assets:precompile``, and the server that's managing your build has ``boot`` setup.
|
106
|
+
|
107
|
+
## Prior art
|
22
108
|
|
23
|
-
|
109
|
+
- [webpack-rails](https://github.com/mipearson/webpack-rails)
|
24
110
|
|
25
111
|
## Contributing
|
26
112
|
|
data/cljs-rails.gemspec
CHANGED
@@ -13,12 +13,13 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.homepage = ""
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
|
+
spec.required_ruby_version = '>= 2.1.0'
|
17
|
+
|
16
18
|
spec.files = `git ls-files -z`.split("\x0")
|
17
19
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
20
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
21
|
spec.require_paths = ["lib"]
|
20
22
|
|
21
|
-
spec.
|
22
|
-
spec.add_development_dependency "
|
23
|
-
spec.add_development_dependency "rake", "~> 10.0"
|
23
|
+
spec.add_dependency "railties", ">= 4.2.7"
|
24
|
+
spec.add_development_dependency "rails", ">= 4.2.7"
|
24
25
|
end
|
data/lib/cljs-rails.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'cljs/rails'
|
data/lib/cljs/rails.rb
CHANGED
@@ -0,0 +1,43 @@
|
|
1
|
+
require 'action_view'
|
2
|
+
|
3
|
+
module Cljs
|
4
|
+
module Rails
|
5
|
+
# Asset path helpers for use with webpack
|
6
|
+
module Helper
|
7
|
+
# Return asset paths for a particular webpack entry point.
|
8
|
+
#
|
9
|
+
# Response may either be full URLs (eg http://localhost/...) if the dev server
|
10
|
+
# is in use or a host-relative URl (eg /webpack/...) if assets are precompiled.
|
11
|
+
#
|
12
|
+
# Will raise an error if our manifest can't be found or the entry point does
|
13
|
+
# not exist.
|
14
|
+
def cljs_main_path
|
15
|
+
if ::Rails.env.production?
|
16
|
+
cljs_main_prod_path
|
17
|
+
else
|
18
|
+
cljs_main_dev_path
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
def cljs_main_prod_path
|
23
|
+
# ``app/assets/cljs-build`` has to be added to the asset paths
|
24
|
+
main = ::Rails.configuration.cljs.main_target
|
25
|
+
"#{main}.js"
|
26
|
+
end
|
27
|
+
|
28
|
+
def cljs_main_dev_path
|
29
|
+
port = ::Rails.configuration.cljs.dev_server.port
|
30
|
+
protocol = ::Rails.configuration.cljs.dev_server.https ? 'https' : 'http'
|
31
|
+
main = ::Rails.configuration.cljs.main_target
|
32
|
+
|
33
|
+
host = ::Rails.configuration.cljs.dev_server.host
|
34
|
+
host = instance_eval(&host) if host.respond_to?(:call)
|
35
|
+
|
36
|
+
# if ::Rails.env.developmtn
|
37
|
+
|
38
|
+
"#{protocol}://#{host}:#{port}/#{main}.js"
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
data/lib/cljs/rails/version.rb
CHANGED
data/lib/cljs/railtie.rb
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'rails'
|
2
|
+
require 'rails/railtie'
|
3
|
+
require 'cljs/rails/helper'
|
4
|
+
|
5
|
+
module Cljs
|
6
|
+
# :nodoc:
|
7
|
+
class Railtie < ::Rails::Railtie
|
8
|
+
config.after_initialize do
|
9
|
+
ActiveSupport.on_load(:action_view) do
|
10
|
+
include Cljs::Rails::Helper
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
config.cljs = ActiveSupport::OrderedOptions.new
|
15
|
+
config.cljs.dev_server = ActiveSupport::OrderedOptions.new
|
16
|
+
|
17
|
+
config.cljs.production_build_task = "prod"
|
18
|
+
config.cljs.dev_server.port = 5555
|
19
|
+
config.cljs.dev_server.host = 'localhost'
|
20
|
+
config.cljs.main_target = 'main'
|
21
|
+
|
22
|
+
rake_tasks do
|
23
|
+
load "tasks/cljs.rake"
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,66 @@
|
|
1
|
+
module CljsRails
|
2
|
+
# :nodoc:
|
3
|
+
class InstallGenerator < ::Rails::Generators::Base
|
4
|
+
source_root File.expand_path("../../templates", __FILE__)
|
5
|
+
|
6
|
+
desc "Install everything you need for a basic cljs-rails integration"
|
7
|
+
|
8
|
+
argument :app_name,
|
9
|
+
type: :string,
|
10
|
+
default: ::Rails.application.class.parent_name.downcase,
|
11
|
+
banner: "app_name"
|
12
|
+
|
13
|
+
|
14
|
+
def add_foreman_to_gemfile
|
15
|
+
gem 'foreman'
|
16
|
+
end
|
17
|
+
|
18
|
+
def copy_procfile
|
19
|
+
copy_file "Procfile", "Procfile"
|
20
|
+
end
|
21
|
+
|
22
|
+
def copy_build_boot
|
23
|
+
template("build.boot", "build.boot")
|
24
|
+
end
|
25
|
+
|
26
|
+
def copy_boot_properties
|
27
|
+
copy_file "boot.properties", "boot.properties"
|
28
|
+
end
|
29
|
+
|
30
|
+
def create_core_cljs
|
31
|
+
empty_directory "cljs/src/#{app_name}"
|
32
|
+
template("core.cljs", "cljs/src/#{app_name}/core.cljs")
|
33
|
+
end
|
34
|
+
|
35
|
+
def create_main_edn
|
36
|
+
template("main.cljs.edn", "cljs/src/main.cljs.edn")
|
37
|
+
end
|
38
|
+
|
39
|
+
def add_to_gitignore
|
40
|
+
append_to_file ".gitignore" do
|
41
|
+
<<-EOF.strip_heredoc
|
42
|
+
# Added by cljs-rails
|
43
|
+
/app/assets/cljs-build
|
44
|
+
.nrepl-port
|
45
|
+
EOF
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
def whats_next
|
50
|
+
puts <<-EOF.strip_heredoc
|
51
|
+
|
52
|
+
We've set up the basics of clojurescript-rails for you, but you'll still
|
53
|
+
need to:
|
54
|
+
|
55
|
+
1. Add the 'main' entry point into your layout, and
|
56
|
+
2. Run 'foreman start' to run the boot build and rails server
|
57
|
+
|
58
|
+
See the README.md for this gem at
|
59
|
+
https://github.com/bogdan-dumitru/cljs-rails/blob/master/README.md
|
60
|
+
for more info.
|
61
|
+
|
62
|
+
Have a functional day!
|
63
|
+
EOF
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
(set-env!
|
2
|
+
:resource-paths #{"cljs/src"}
|
3
|
+
:dependencies '[[adzerk/boot-cljs "1.7.228-2" :scope "test"]
|
4
|
+
[adzerk/boot-cljs-repl "0.3.3" :scope "test"]
|
5
|
+
[adzerk/boot-reload "0.5.0" :scope "test"]
|
6
|
+
[pandeiro/boot-http "0.7.6" :scope "test"]
|
7
|
+
[crisptrutski/boot-cljs-test "0.2.2-SNAPSHOT" :scope "test"]
|
8
|
+
[org.clojure/clojure "1.8.0"]
|
9
|
+
[org.clojure/clojurescript "1.9.89"]
|
10
|
+
[com.cemerick/piggieback "0.2.1" :scope "test"]
|
11
|
+
[weasel "0.7.0" :scope "test"]
|
12
|
+
[org.clojure/tools.nrepl "0.2.12" :scope "test"]
|
13
|
+
[binaryage/devtools "0.8.1"]])
|
14
|
+
|
15
|
+
(require
|
16
|
+
'[adzerk.boot-cljs :refer [cljs]]
|
17
|
+
'[adzerk.boot-cljs-repl :refer [cljs-repl start-repl]]
|
18
|
+
'[adzerk.boot-reload :refer [reload]]
|
19
|
+
'[crisptrutski.boot-cljs-test :refer [exit! test-cljs]]
|
20
|
+
'[pandeiro.boot-http :refer [serve]])
|
21
|
+
|
22
|
+
(deftask dev []
|
23
|
+
(comp (serve :port 5555)
|
24
|
+
(watch)
|
25
|
+
(speak)
|
26
|
+
(reload :asset-host "http://localhost:5555" :on-jsload '<%= app_name %>.core/main)
|
27
|
+
(cljs-repl)
|
28
|
+
(cljs :source-map true :optimizations :none)))
|
29
|
+
|
30
|
+
(deftask prod []
|
31
|
+
(comp (cljs :optimizations :advanced)
|
32
|
+
(target :dir #{"app/assets/cljs-build"})))
|
@@ -0,0 +1,11 @@
|
|
1
|
+
(ns <%= app_name %>.core
|
2
|
+
(:require [devtools.core :as devtools]
|
3
|
+
[clojure.browser.dom :as dom]))
|
4
|
+
|
5
|
+
;; -- Debugging aids ----------------------------------------------------------
|
6
|
+
(devtools/install!) ;; we love https://github.com/binaryage/cljs-devtools
|
7
|
+
(enable-console-print!) ;; so that println writes to `console.log`
|
8
|
+
|
9
|
+
(defn ^:export main
|
10
|
+
[]
|
11
|
+
(dom/append (.-body js/document) (dom/element "div" "Hello world edit me now!")))
|
data/lib/tasks/cljs.rake
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
namespace :cljs do
|
2
|
+
desc "Compile clojurescript for production"
|
3
|
+
task compile: :environment do
|
4
|
+
production_build_task = Rails.configuration.cljs.production_build_task
|
5
|
+
|
6
|
+
run_build = %{
|
7
|
+
type boot >/dev/null 2>&1 ||
|
8
|
+
{ echo >&2 "[ERROR] Boot is not installed."; exit 1; }
|
9
|
+
boot #{production_build_task}
|
10
|
+
}
|
11
|
+
|
12
|
+
sh run_build, verbose: false
|
13
|
+
end
|
14
|
+
end
|
data/spec/helper_spec.rb
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'cljs_main_path' do
|
4
|
+
include Cljs::Rails::Helper
|
5
|
+
before(:each) do
|
6
|
+
# Reset configuration
|
7
|
+
::Rails.configuration.cljs.main_target = "main"
|
8
|
+
::Rails.configuration.cljs.dev_server.port = 5555
|
9
|
+
::Rails.configuration.cljs.dev_server.host = 'localhost'
|
10
|
+
end
|
11
|
+
|
12
|
+
it "should use https protocol when https is true" do
|
13
|
+
::Rails.configuration.cljs.dev_server.https = true
|
14
|
+
expect(cljs_main_path).to be_starts_with('https:')
|
15
|
+
end
|
16
|
+
|
17
|
+
it "should use http protocol when https is false" do
|
18
|
+
::Rails.configuration.cljs.dev_server.https = false
|
19
|
+
expect(cljs_main_path).to be_starts_with('http:')
|
20
|
+
end
|
21
|
+
|
22
|
+
context "when in development" do
|
23
|
+
before do
|
24
|
+
allow(Rails.env).to receive :production? { false }
|
25
|
+
allow(Rails.env).to receive :development? { true }
|
26
|
+
end
|
27
|
+
|
28
|
+
it "should have the user talk to the dev server" do
|
29
|
+
::Rails.configuration.cljs.dev_server.port = 4000
|
30
|
+
::Rails.configuration.cljs.dev_server.host = 'boot-dev-server.host'
|
31
|
+
|
32
|
+
expect(cljs_main_path).to eq("http://boot-dev-server.host:4000/main.js")
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
context "when in prouction" do
|
37
|
+
before do
|
38
|
+
allow(Rails.env).to receive :production? { true }
|
39
|
+
allow(Rails.env).to receive :development? { false }
|
40
|
+
end
|
41
|
+
|
42
|
+
it "should have the user talk to the dev server" do
|
43
|
+
::Rails.configuration.cljs.dev_server.port = 4000
|
44
|
+
::Rails.configuration.cljs.dev_server.host = 'boot-dev-server.host'
|
45
|
+
|
46
|
+
expect(cljs_main_path).to eq("main.js")
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
it "should use the main target configuration if specified" do
|
51
|
+
::Rails.configuration.cljs.main_target = "apples"
|
52
|
+
expect(cljs_main_path).to be_ends_with("apples.js")
|
53
|
+
end
|
54
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
require "rspec"
|
2
|
+
require "rails"
|
3
|
+
require "cljs/rails"
|
4
|
+
|
5
|
+
module Dummy
|
6
|
+
# :nodoc:
|
7
|
+
class Application < Rails::Application
|
8
|
+
config.eager_load = false
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
Rails.application.initialize!
|
13
|
+
|
14
|
+
# Load support files
|
15
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cljs-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bogdan Dumitru
|
@@ -11,47 +11,33 @@ cert_chain: []
|
|
11
11
|
date: 2017-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: railties
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
20
|
-
type: :
|
19
|
+
version: 4.2.7
|
20
|
+
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 4.2.7
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '1.7'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '1.7'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: rake
|
28
|
+
name: rails
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
44
30
|
requirements:
|
45
|
-
- - "
|
31
|
+
- - ">="
|
46
32
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
33
|
+
version: 4.2.7
|
48
34
|
type: :development
|
49
35
|
prerelease: false
|
50
36
|
version_requirements: !ruby/object:Gem::Requirement
|
51
37
|
requirements:
|
52
|
-
- - "
|
38
|
+
- - ">="
|
53
39
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
40
|
+
version: 4.2.7
|
55
41
|
description: Boot powered helpers to get up and running fast with Clojurescript in
|
56
42
|
your Rails application
|
57
43
|
email:
|
@@ -61,13 +47,29 @@ extensions: []
|
|
61
47
|
extra_rdoc_files: []
|
62
48
|
files:
|
63
49
|
- ".gitignore"
|
50
|
+
- ".travis.yml"
|
51
|
+
- Appraisals
|
64
52
|
- Gemfile
|
65
53
|
- LICENSE.txt
|
66
54
|
- README.md
|
67
55
|
- Rakefile
|
68
56
|
- cljs-rails.gemspec
|
57
|
+
- gemfiles/rails_4.gemfile
|
58
|
+
- gemfiles/rails_5.gemfile
|
59
|
+
- lib/cljs-rails.rb
|
69
60
|
- lib/cljs/rails.rb
|
61
|
+
- lib/cljs/rails/helper.rb
|
70
62
|
- lib/cljs/rails/version.rb
|
63
|
+
- lib/cljs/railtie.rb
|
64
|
+
- lib/generators/cljs_rails/install_generator.rb
|
65
|
+
- lib/generators/templates/Procfile
|
66
|
+
- lib/generators/templates/boot.properties
|
67
|
+
- lib/generators/templates/build.boot
|
68
|
+
- lib/generators/templates/core.cljs
|
69
|
+
- lib/generators/templates/main.cljs.edn
|
70
|
+
- lib/tasks/cljs.rake
|
71
|
+
- spec/helper_spec.rb
|
72
|
+
- spec/spec_helper.rb
|
71
73
|
homepage: ''
|
72
74
|
licenses:
|
73
75
|
- MIT
|
@@ -80,7 +82,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
80
82
|
requirements:
|
81
83
|
- - ">="
|
82
84
|
- !ruby/object:Gem::Version
|
83
|
-
version:
|
85
|
+
version: 2.1.0
|
84
86
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
85
87
|
requirements:
|
86
88
|
- - ">="
|
@@ -88,8 +90,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
90
|
version: '0'
|
89
91
|
requirements: []
|
90
92
|
rubyforge_project:
|
91
|
-
rubygems_version: 2.
|
93
|
+
rubygems_version: 2.6.8
|
92
94
|
signing_key:
|
93
95
|
specification_version: 4
|
94
96
|
summary: Clojurescript integration for Rails, inspired by webpack-rails
|
95
|
-
test_files:
|
97
|
+
test_files:
|
98
|
+
- spec/helper_spec.rb
|
99
|
+
- spec/spec_helper.rb
|