menilite 0.5.3 → 0.5.4

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
  SHA256:
3
- metadata.gz: 29862fb63f6bad302f691d44463d39812745bd1e0645cfb701031a6cb7aa624e
4
- data.tar.gz: 3258620dd1d1bb0c01a9660a47d095e26e30652713aded662b172c39f22f8d5d
3
+ metadata.gz: dcaa8393a0dd1330df681b904fe1119cb0626787d732cfdc208aff776002f69c
4
+ data.tar.gz: '003830da5b448a2b248a753f11f5c18a3ea4a9cb78592faf3224ebb82e9a5261'
5
5
  SHA512:
6
- metadata.gz: 8f1be399c4bc75860d37a2c710655884589c2d084024b1141fd88d219adaed8d5271ce561947b166e30aa710947b3ce87e615933dcdd5f606a5be434d9d99c41
7
- data.tar.gz: 4bedbd09db524990fc04fca1f871bb9b8b399a94fff62c17bed2472d772400a49178adf7376b69829452dd16f6628e140a3f54ceca9b05ef7320fcc8bd101483
6
+ metadata.gz: 6d15e0267c419226fecba30cf9962ce68bb065ff90b0f0a67b9412bbf85d44341e08b816e92d89d3418355a11b3599eb6987dcfe6a1090e13b42a7d7d2e2758b
7
+ data.tar.gz: b7d68000678b4a96bb7335470bb4888a3f68f82a6434c3b66e71b6d8645acac5a9fd1e3766e97d2675c75313a5064fd123e4a28fbf2fc3d67180e6ca1ab4e34b
@@ -0,0 +1,38 @@
1
+ # Ruby CircleCI 2.0 configuration file
2
+ #
3
+ # Check https://circleci.com/docs/2.0/language-ruby/ for more details
4
+ #
5
+ version: 2
6
+ jobs:
7
+ build:
8
+ docker:
9
+ # specify the version you desire here
10
+ - image: circleci/ruby:2.4.1-node-browsers
11
+
12
+ # Specify service dependencies here if necessary
13
+ # CircleCI maintains a library of pre-built images
14
+ # documented at https://circleci.com/docs/2.0/circleci-images/
15
+ # - image: circleci/postgres:9.4
16
+
17
+ working_directory: ~/repo
18
+
19
+ steps:
20
+ - checkout
21
+
22
+ - run:
23
+ name: install dependencies
24
+ command: |
25
+ bundle install --jobs=4 --retry=3 --path vendor/bundle
26
+
27
+ # run tests!
28
+ - run:
29
+ name: run tests
30
+ command: |
31
+ mkdir /tmp/test-results
32
+ bundle exec rake
33
+ # collect reports
34
+ - store_test_results:
35
+ path: /tmp/test-results
36
+ - store_artifacts:
37
+ path: /tmp/test-results
38
+ destination: test-results
data/README.md CHANGED
@@ -1,9 +1,9 @@
1
1
  # Menilite
2
2
 
3
- [![Build Status](https://travis-ci.org/youchan/menilite.svg?branch=master)](https://travis-ci.org/youchan/menilite)
3
+ [![CircleCI](https://circleci.com/gh/youchan/menilite.svg?style=svg)](https://circleci.com/gh/youchan/menilite)
4
4
 
5
5
  An isomorphic web programming framework in Ruby.
6
- Ruby codes also run on the client side by using [Opalrb](http://opalrb.org).
6
+ Ruby codes also run on the client side by using [Opalrb](http://opalrb.com).
7
7
 
8
8
  ## Installation
9
9
 
data/Rakefile CHANGED
@@ -1,11 +1,6 @@
1
1
  require 'opal'
2
- require 'opal/rspec/rake_task'
2
+ require_relative 'test/opal/unit_test/rake_task'
3
3
  require "bundler/gem_tasks"
4
+ require 'menilite'
4
5
 
5
- Opal::RSpec::RakeTask.new(:default) do |server, task|
6
- task.pattern = 'spec/opal/**/*_spec.rb'
7
- task.file = [ENV['FILE']] if ENV['FILE']
8
- server.append_path File.expand_path('../lib', __FILE__)
9
- server.source_map = true
10
- server.debug = true
11
- end
6
+ Opal::UnitTest::RakeTask.new(:default, File.expand_path("../test/test", __FILE__))
@@ -1,5 +1,8 @@
1
1
  require "menilite/version"
2
2
 
3
+ module Menilite
4
+ end
5
+
3
6
  require "menilite/helper"
4
7
 
5
8
  if RUBY_ENGINE == "opal"
@@ -22,6 +25,3 @@ else
22
25
  Opal.append_path File.expand_path('../', __FILE__).untaint
23
26
  Opal.append_path File.expand_path('../../vendor', __FILE__).untaint
24
27
  end
25
-
26
- module Menilite
27
- end
@@ -364,7 +364,7 @@ module Menilite
364
364
  when :date
365
365
  -> (value, name) { value.nil? || value.is_a?(Date) || value.is_a?(String) }
366
366
  when :time
367
- -> (value, name) { value.nil? || value.is_a?(Time) }
367
+ -> (value, name) { value.nil? || value.is_a?(Time) || value.is_a?(String) }
368
368
  when Hash
369
369
  if type.keys.first == :enum
370
370
  -> (value, name) { value.nil? || value.is_a?(Integer) || type[:enum].include?(value) }
@@ -1,5 +1,5 @@
1
1
  require 'sinatra/base'
2
- require 'sinatra/json'
2
+ #require 'sinatra/json'
3
3
  require 'json'
4
4
 
5
5
  class Class
@@ -1,3 +1,3 @@
1
1
  module Menilite
2
- VERSION = "0.5.3"
2
+ VERSION = "0.5.4"
3
3
  end
@@ -20,8 +20,6 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_development_dependency "bundler", "~> 1.12"
22
22
  spec.add_development_dependency "rake", "~> 10.0"
23
- spec.add_development_dependency "rspec", "~> 3.0"
24
- spec.add_development_dependency 'opal-rspec'
25
23
 
26
24
  spec.add_runtime_dependency "opal"
27
25
  spec.add_runtime_dependency "sinatra-activerecord"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: menilite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - youchan
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-05-30 00:00:00.000000000 Z
11
+ date: 2019-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -38,34 +38,6 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
- - !ruby/object:Gem::Dependency
42
- name: rspec
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '3.0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '3.0'
55
- - !ruby/object:Gem::Dependency
56
- name: opal-rspec
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
41
  - !ruby/object:Gem::Dependency
70
42
  name: opal
71
43
  requirement: !ruby/object:Gem::Requirement
@@ -102,6 +74,7 @@ executables: []
102
74
  extensions: []
103
75
  extra_rdoc_files: []
104
76
  files:
77
+ - ".circleci/config.yml"
105
78
  - ".gitignore"
106
79
  - ".rspec"
107
80
  - ".travis.yml"
@@ -145,8 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
118
  - !ruby/object:Gem::Version
146
119
  version: '0'
147
120
  requirements: []
148
- rubyforge_project:
149
- rubygems_version: 2.7.3
121
+ rubygems_version: 3.0.1
150
122
  signing_key:
151
123
  specification_version: 4
152
124
  summary: Isomorphic models between client side opal and server side ruby.