codefusion 0.2.0 → 0.2.1

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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZWU2Nzk2NjI1ZTJjZTc5NmIxZTEzMjU3Y2U5ZTkyMDllODkzMjRjNg==
4
+ YjY3NDJlYjdkNmNlYTI1ZGQ4NDE4ODczZDFiYWIwNjEwMzNkNWZmMQ==
5
5
  data.tar.gz: !binary |-
6
- Zjc2YTNiZGExMThjNDQ3N2YyY2NkM2E0MmJiOWQ4ZGVkMTEzOGJhOA==
6
+ ZDA5N2YxNDQwMTcwN2MwYTRjNWYxMjMxMjM5MDExNmIzNzRjZTVlMg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YjIyNWVhNmQ3ZDE0ZjczOGEwMDJkM2M5ZmQ2ODk3NjVhM2Y4NjJmOGYwNTZl
10
- NTFlODc0ZWI5YzhmMTE0ZTE5ZTY4ZTdiZGVjYWVhNGE2NWU3MDk2MDA1NDk2
11
- ZTIxOGExZGQ3ODM5ZGRjNGMzMjM0ZDUwM2MyNDI0ZDBlMGM4YjE=
9
+ MTU1ZmNhNWI0NWRmZTE2YzY3Nzc0MWFlZDZmNmY3YjY2YjVlYmJjYWNmZDA1
10
+ NjYxZWFjMDI2OGIzOGMxYTJmYmM3YjFlY2VlNGFkZWM0MDk4NWZkMzNhZWRl
11
+ NzE3YjJiOTIxZjYyNWI0YmRjM2VkMjdiMGFkY2E3YjFlOTg2NWU=
12
12
  data.tar.gz: !binary |-
13
- NjZhOTZkZjM4Mjg3ZDMyNTM1ZWI1NDhmZjJiMTVlOTk0MTYxZGQwMjIxYzVk
14
- NGRkNTI0YzNmOWQzNDBkYzY2ZDAwZjIwMTgxOGZlNGY2M2Q3ZDcxOGIxOTFk
15
- ZWM2NDllNDUwYjExNzdmNjk5MzhkOTIwY2E2Yzg5YjlkMjQ5ZGM=
13
+ NjBiNjJkNzZmMGJhMjk3NzI3MGZjY2U0MTIxYmM1MjgxZTVkODkzOTk5ZTE2
14
+ MjI4YzI2YTRlMGNjZDM0ZDFkNTg3NTZhMjViYTdiNTBmNDJkOWY4MzVlNmMz
15
+ N2U3YjQ1MjVjYjBiM2QxZWIwMzRkNThjYzI1MzVjNzZjOGZmYjI=
@@ -30,7 +30,7 @@ class Classroom
30
30
 
31
31
  private
32
32
  def generate_url
33
- "http://codefusion.io/classrooms/#{@code}"
33
+ "http://codefusion.io/#/classrooms/#{@code}"
34
34
  end
35
35
 
36
36
  def new_code
@@ -38,7 +38,7 @@ class Classroom
38
38
  end
39
39
 
40
40
  def generate_code
41
- SecureRandom::hex(3)
41
+ SecureRandom::hex(2)
42
42
  end
43
43
 
44
44
  def current_codes
@@ -1,3 +1,3 @@
1
1
  module Codefusion
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -15,16 +15,4 @@ describe Classroom do
15
15
  expect(@this_class.instance_variable_get(:@dir)).to eq("Users")
16
16
  end
17
17
  end
18
-
19
- context "Testing initialize update if uuid" do
20
- before(:each) do
21
- make_hash.any_instance.stub(:update){"hi"}
22
- FirebaseCreateCommand.any_instance.stub(:create){{"name"=>"create"}}
23
- FirebaseUpdateCommand.any_instance.stub(:update){{"name"=>"update"}}
24
- @this_class=Classroom.new('/Users' ,'README.md')
25
- @this_class.extend(FirebaseUpdateCommand)
26
- @this_class.extend(FirebaseUpdateCommand)
27
- @this_class.stub(:make_hash){{:this=> "hash"}}
28
- end
29
- end
30
18
  end
@@ -1,9 +1,34 @@
1
1
  require 'spec_helper'
2
2
 
3
+
4
+
5
+ describe FirebaseCommand do
6
+ context "test public" do
7
+ before(:each) do
8
+ class DummyClass
9
+ end
10
+ @dummy_class = DummyClass.new
11
+ @dummy_class.extend(FirebaseCommand)
12
+
13
+ end
14
+
15
+ it "has a uri" do
16
+ expect(@dummy_class.uri).to eq("https://radiant-fire-3325.firebaseio.com/classrooms")
17
+ end
18
+
19
+ it "makes a request url" do
20
+ uri =@dummy_class.uri
21
+ uuid="2"
22
+ call="#{uri}/#{uuid}.json"
23
+ expect(@dummy_class.request_url("2")).to eq("https://radiant-fire-3325.firebaseio.com/classrooms/2.json")
24
+ end
25
+ end
26
+ end
27
+
3
28
  describe FirebaseCreateCommand do
4
29
  context "#create" do
5
30
  it "responds" do
6
- expect(FirebaseCreateCommand.create(['TEST', 'test_room', 'test_text'])).to_not be_nil
31
+ expect(FirebaseCreateCommand.create(['dsafasdfdsTEST', 'test_room', 'test_text'])).to_not be_nil
7
32
  end
8
33
  end
9
34
 
@@ -15,4 +40,5 @@ describe FirebaseUpdateCommand do
15
40
  expect(FirebaseUpdateCommand.update(['TEST', 'test_room', 'test_text'], 'test')).to_not be_nil
16
41
  end
17
42
  end
18
- end
43
+ end
44
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codefusion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Wertman, Ben Myhre, David Stavis, Drew West, James Hulley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-29 00:00:00.000000000 Z
11
+ date: 2014-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec