inesita 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 907698ee4cdd30ecb71863c19293871ec5aa8570
4
- data.tar.gz: 1c75da793084fd787162548f0bbc64a9feb28bcc
3
+ metadata.gz: 7a44e11d0c190bb12d48b6b885d12a914428f945
4
+ data.tar.gz: 96b1d4dccc510facd9ae462b89b81630f2f14bf2
5
5
  SHA512:
6
- metadata.gz: 51f60911f8d1bf274582fd05a8a3fff9370c1a1a9655f28fa3eba8fdab7f4631eb79a2e72f57337cc2dcc14eeb81d4a259d8cde16b7eb81c40227ff81bacc46b
7
- data.tar.gz: 4c05625318392fe448779a30026e585f7f3e9bd70de3df3a69b7260c4399694224edca312b2cb1e1a02d60dda1f9d98619b5554401efb6689c4db6fb2b01c794
6
+ metadata.gz: ce02c2a6d3f600b8570d40fa1c18fb8bf3ddfcf2543afdde9a6c2d6a073035593cfd2dc0745079916e04a7751bc1245bcb680bc9e1e3618123c7038605f2ebc9
7
+ data.tar.gz: 7a67e137796f047fc8cea9de2f96c8ecd9b1b6da7826b2c9a79f4cbcd2392d8f77ddeb08dbaf5648f875156c23fe6f89289c21000405bbdf996096149646ac1c
@@ -3,7 +3,13 @@ sudo: false
3
3
  cache:
4
4
  bundler: true
5
5
  rvm:
6
- - 2.2.3
6
+ - 2.3.1
7
+ before_install:
8
+ - "export PATH=$PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH"
9
+ - "if [ $(phantomjs --version) != '2.1.1' ]; then rm -rf $PWD/travis_phantomjs; mkdir -p $PWD/travis_phantomjs; fi"
10
+ - "if [ $(phantomjs --version) != '2.1.1' ]; then wget https://assets.membergetmember.co/software/phantomjs-2.1.1-linux-x86_64.tar.bz2 -O $PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2; fi"
11
+ - "if [ $(phantomjs --version) != '2.1.1' ]; then tar -xvf $PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C $PWD/travis_phantomjs; fi"
12
+ - "phantomjs --version"
7
13
  notifications:
8
14
  webhooks:
9
15
  urls: https://webhooks.gitter.im/e/04c689326f7cd8e4d499
@@ -1,33 +1,73 @@
1
- ## 0.4.0 (02.05.2016)
2
- * add `router` to `store`
3
- * change `handle_link` to `go_to`
4
- * add `init` callback to `store` and `component`
5
- * `router` support `*param` to catch rest of url
6
- * make `opal-browser` optional
7
- * add `Inesita::Browser` minimal browser support
8
- * extract livereload to `inesita-livereload`
9
- * removed `after_render`
10
- * add `virtual-dom` hooks (instead of `after_render`)
11
-
12
- ## 0.3.5 (10.03.2016)
13
- * add `inesita watch`
14
- * add `inesita build` dir parameters
15
-
16
- ## 0.3.2 (05.03.2016)
17
- * add `app_dist` and `app_dev` directory support
18
- * add `redirect_to` to `route` options
19
-
20
- ## 0.3.1 (05.01.2016)
21
- * add params hash to `router.url_for`
22
- * fix `router.current_url?`
23
- * add `class_names` helper
24
-
25
- ## 0.3.0 (20.12.2015)
26
-
27
- * live-reload
28
- * rename `update_dom` to `render!`
29
- * include `opal-browser`
30
- * `after_render` component method - executes after component is rendered
31
- * add minification support
32
- * specs added
33
- * add static support - for serving images
1
+ ## [0.4.1] - 2016.07.15
2
+
3
+ ### Added
4
+ - nice changelog
5
+
6
+ ### Changed
7
+ - update `opal` to `0.10.0`
8
+
9
+ ### Removed
10
+ - deprecated `update_dom`
11
+
12
+ ### Fixed
13
+ - prefix bug in opal 0.10
14
+
15
+ ## [0.4.0] - 2016.05.02
16
+
17
+ ### Added
18
+ - `router` is accessible from `store`
19
+ - `init` callback to `Store` and `Component`
20
+ - `Inesita::Browser` minimal browser support
21
+ - `router` support `*param` to catch rest of url
22
+ - `virtual-dom` hooks (instead of `after_render`)
23
+
24
+ ### Changed
25
+ - rename `Router#handle_link` to `Router#go_to`
26
+
27
+ ### Removed
28
+ - `Component#after_render`
29
+ - `opal-browser` is now optional
30
+ - extract livereload to `inesita-livereload`
31
+
32
+
33
+ ## [0.3.5] - 2016.03.10
34
+ - add `inesita watch`
35
+ - add `inesita build` dir parameters
36
+
37
+
38
+ ## [0.3.2] - 2016-03-05
39
+
40
+ ### Added
41
+ - add `app_dist` and `app_dev` directory support
42
+ - add `redirect_to` to `route` options
43
+
44
+
45
+ ## [0.3.1] - 2016-01-05
46
+
47
+ ### Added
48
+ - `class_names` helper
49
+ - params hash in `Router#url_for`
50
+
51
+ ### Fixed
52
+ - fix `router.current_url?`
53
+
54
+
55
+ ## [0.3.0] - 2015-12-20
56
+
57
+ ### Added
58
+ - live-reload
59
+ - `after_render` component method - executes after component is rendered
60
+ - specs
61
+ - static support - for serving images
62
+ - minification support
63
+
64
+ ### Changed
65
+ - rename `update_dom` to `render!`
66
+ - use `opal-browser` instead of pure javascript
67
+
68
+ [Unreleased]: https://github.com/inesita-rb/inesita/compare/v0.4.0...HEAD
69
+ [0.4.0]: https://github.com/inesita-rb/inesita/compare/v0.3.5...v0.4.0
70
+ [0.3.5]: https://github.com/inesita-rb/inesita/compare/v0.3.2...v0.3.5
71
+ [0.3.2]: https://github.com/inesita-rb/inesita/compare/v0.3.1...v0.3.2
72
+ [0.3.1]: https://github.com/inesita-rb/inesita/compare/v0.3.0...v0.3.1
73
+ [0.3.0]: https://github.com/inesita-rb/inesita/compare/v0.0.0...v0.3.1
data/Gemfile CHANGED
@@ -1,8 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
-
5
- gem 'bundler', '~> 1.0'
6
- gem 'rspec', '~> 3.0'
7
- gem 'opal-rspec', '~> 0.5.0'
8
- gem 'rake', '~> 11.0'
data/README.md CHANGED
@@ -8,7 +8,4 @@ More detailed description [here](https://inesita-rb.github.io).
8
8
 
9
9
  ## Examples
10
10
 
11
- - Example application: [Live demo 👀](http://inesita-playground.netlify.com/) · [source code 📖](https://github.com/inesita-rb/playground)
12
- - TodoMVC: [Live demo 👀](http://inesita-todomvc.netlify.com/) · [source code 📖](https://github.com/inesita-rb/todomvc)
13
- - DBMonster: [Live demo 👀](http://inesita-dbmonster.netlify.com/) · [source code 📖](https://github.com/inesita-rb/dbmonster)
14
- - Asciify Me: [Live demo 👀](https://inesita-asciify-me.netlify.com/) · [source code 📖](https://github.com/inesita-rb/asciify-me)
11
+ For list of examples go [here](https://github.com/inesita-rb/awesome-inesita)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'inesita'
3
- s.version = '0.4.0'
3
+ s.version = '0.4.1'
4
4
  s.authors = ['Michał Kalbarczyk']
5
5
  s.email = 'fazibear@gmail.com'
6
6
  s.homepage = 'http://github.com/inesita-rb/inesita'
@@ -13,11 +13,16 @@ Gem::Specification.new do |s|
13
13
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
14
14
  s.require_paths = ['lib']
15
15
 
16
- s.add_dependency 'opal', '~> 0.9'
16
+ s.add_dependency 'opal', '>= 0.9', '< 0.11'
17
17
  s.add_dependency 'opal-virtual-dom', '~> 0.4.0'
18
18
  s.add_dependency 'slim', '~> 3.0'
19
19
  s.add_dependency 'sass', '~> 3.4'
20
20
  s.add_dependency 'thor', '~> 0.19'
21
21
  s.add_dependency 'rack-rewrite', '~> 1.5'
22
22
  s.add_dependency 'listen', '~> 3.0'
23
+
24
+ s.add_development_dependency 'bundler', '~> 1.0'
25
+ s.add_development_dependency 'rspec', '~> 3.0'
26
+ s.add_development_dependency 'opal-rspec', '~> 0.6.0.beta'
27
+ s.add_development_dependency 'rake', '~> 11.0'
23
28
  end
@@ -1,7 +1,7 @@
1
1
  source "https://rubygems.org"
2
2
 
3
3
  # inesita gem
4
- gem 'inesita', '~> 0.3.0'
4
+ gem 'inesita', '~> 0.4.0'
5
5
  gem 'inesita-livereload', '~> 0.1.0'
6
6
 
7
7
  # add this gems to minify files on build
@@ -31,7 +31,7 @@ module Inesita
31
31
  end
32
32
 
33
33
  def assets_code
34
- assets_prefix = @dist ? nil : Config::ASSETS_PREFIX
34
+ assets_prefix = @dist ? '' : Config::ASSETS_PREFIX
35
35
  %(
36
36
  <link rel="stylesheet" type="text/css" href="#{assets_prefix}/stylesheet.css">
37
37
  #{Opal::Sprockets.javascript_include_tag('application', sprockets: @assets_app, prefix: assets_prefix, debug: !@dist)}
@@ -39,11 +39,6 @@ module Inesita
39
39
  end
40
40
  end
41
41
 
42
- def update_dom
43
- $console.warn "Use 'render!' instead of 'update_dom'"
44
- render!
45
- end
46
-
47
42
  def render!
48
43
  Browser.animation_frame do
49
44
  if @root_component
@@ -4,11 +4,6 @@ module Inesita
4
4
  def init; end
5
5
  def store; self end
6
6
 
7
- def update_dom
8
- $console.warn "Use 'render!' instead of 'update_dom'"
9
- render!
10
- end
11
-
12
7
  def render!
13
8
  root_component.render!
14
9
  end
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe Inesita::Router do
3
+ describe Inesita::Component do
4
4
  let(:empty_component) { Class.new { include Inesita::Component }}
5
5
  let(:component) do
6
6
  Class.new do
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inesita
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michał Kalbarczyk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-02 00:00:00.000000000 Z
11
+ date: 2016-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opal
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0.9'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '0.11'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: '0.9'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '0.11'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: opal-virtual-dom
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -108,6 +114,62 @@ dependencies:
108
114
  - - "~>"
109
115
  - !ruby/object:Gem::Version
110
116
  version: '3.0'
117
+ - !ruby/object:Gem::Dependency
118
+ name: bundler
119
+ requirement: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - "~>"
122
+ - !ruby/object:Gem::Version
123
+ version: '1.0'
124
+ type: :development
125
+ prerelease: false
126
+ version_requirements: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - "~>"
129
+ - !ruby/object:Gem::Version
130
+ version: '1.0'
131
+ - !ruby/object:Gem::Dependency
132
+ name: rspec
133
+ requirement: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - "~>"
136
+ - !ruby/object:Gem::Version
137
+ version: '3.0'
138
+ type: :development
139
+ prerelease: false
140
+ version_requirements: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - "~>"
143
+ - !ruby/object:Gem::Version
144
+ version: '3.0'
145
+ - !ruby/object:Gem::Dependency
146
+ name: opal-rspec
147
+ requirement: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - "~>"
150
+ - !ruby/object:Gem::Version
151
+ version: 0.6.0.beta
152
+ type: :development
153
+ prerelease: false
154
+ version_requirements: !ruby/object:Gem::Requirement
155
+ requirements:
156
+ - - "~>"
157
+ - !ruby/object:Gem::Version
158
+ version: 0.6.0.beta
159
+ - !ruby/object:Gem::Dependency
160
+ name: rake
161
+ requirement: !ruby/object:Gem::Requirement
162
+ requirements:
163
+ - - "~>"
164
+ - !ruby/object:Gem::Version
165
+ version: '11.0'
166
+ type: :development
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ requirements:
170
+ - - "~>"
171
+ - !ruby/object:Gem::Version
172
+ version: '11.0'
111
173
  description: Frontent web framework for Opal
112
174
  email: fazibear@gmail.com
113
175
  executables: